| /linux/fs/nfsd/ |
| H A D | filecache.c | 123 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local 125 put_cred(nf->nf_cred); in nfsd_file_slab_free() 126 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free() 214 struct nfsd_file *nf; in nfsd_file_alloc() local 216 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc() 217 if (unlikely(!nf)) in nfsd_file_alloc() 221 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc() 222 INIT_LIST_HEAD(&nf->nf_gc); in nfsd_file_alloc() 223 nf->nf_birthtime = ktime_get(); in nfsd_file_alloc() 224 nf->nf_file = NULL; in nfsd_file_alloc() [all …]
|
| H A D | localio.c | 120 static void nfsd_file_dio_alignment(struct nfsd_file *nf, in nfsd_file_dio_alignment() argument 125 *nf_dio_mem_align = nf->nf_dio_mem_align; in nfsd_file_dio_alignment() 126 *nf_dio_offset_align = nf->nf_dio_offset_align; in nfsd_file_dio_alignment() 127 *nf_dio_read_offset_align = nf->nf_dio_read_offset_align; in nfsd_file_dio_alignment()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nl_netdev.py | 15 def empty_check(nf) -> None: 16 devs = nf.dev_get({}, dump=True) argument 20 def lo_check(nf) -> None: 21 lo_info = nf.dev_get({"ifindex": 1}) 26 def dev_dump_reject_attr(nf) -> None: 29 nf.dev_get({'ifindex': 1}, dump=True) 35 def napi_list_check(nf) -> None: 41 napis = nf.napi_get({'ifindex': nsim.ifindex}, dump=True) 47 napis = nf.napi_get({'ifindex': nsim.ifindex}, dump=True) 51 def napi_set_threaded(nf) 11 empty_check(nf) global() argument 22 napi_list_check(nf) global() argument 38 napi_set_threaded(nf) global() argument 123 dev_set_threaded(nf) global() argument 161 nsim_rxq_reset_down(nf) global() argument 176 page_pool_check(nf) global() argument [all...] |
| H A D | big_tcp.sh | 96 [ "$NF" = "6" ] && ipt="ip6tables" 106 [ "$NF" = "6" ] && ipt="ip6tables" 115 [ "$NF" = "6" ] && ipt="ip6tables" 124 [ "$NF" = "6" ] && serip=$SERVER_IP6 127 ip net exec $netns netperf -$NF -t TCP_STREAM -l 1 -H $serip -- -m 262144 2>&1 >/dev/null 180 NF=4 testup && echo "***v4 Tests Done***" && \ 181 NF=6 testup && echo "***v6 Tests Done***"
|
| /linux/net/netfilter/ |
| H A D | nf_log.c | 49 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() 157 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf() 164 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf() 172 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf() 175 RCU_INIT_POINTER(net->nf.nf_loggers[pf], NULL); in nf_log_unbind_pf() [all …]
|
| H A D | nf_hooks_lwtunnel.c | 86 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/drivers/platform/surface/aggregator/ |
| H A D | controller.c | 150 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() 300 * @nf: The notifier system reference. 308 * Note: ``nf->lock`` must be held when calling this function. 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() [all …]
|
| /linux/net/ipv6/netfilter/ |
| H A D | nf_defrag_ipv6_hooks.c | 93 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/net/ipv4/netfilter/ |
| H A D | nf_defrag_ipv4.c | 110 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/drivers/platform/surface/ |
| H A D | surface_aggregator_cdev.c | 53 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_obj(*nf); 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 …]
|
| H A D | surface_aggregator_hub.c | 60 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/drivers/clk/renesas/ |
| H A D | rcar-gen4-cpg.c | 87 unsigned int ni, nf; in cpg_pll_8_25_clk_recalc_rate() local 93 nf = FIELD_GET(CPG_PLLxCR1_NF25, readl(pll_clk->pllcr1_reg)); in cpg_pll_8_25_clk_recalc_rate() 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() 121 nf = div64_ul((u64)(req->rate - prate * ni) << 24, in cpg_pll_8_25_clk_determine_rate() 127 nf = 0; in cpg_pll_8_25_clk_determine_rate() 129 req->rate = prate * ni + mul_u64_u32_shr(req->best_parent_rate, nf, 24); 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() [all …]
|
| /linux/Documentation/networking/ |
| H A D | nf_conntrack-sysctl.rst | 223 TCP connections may be offloaded from nf conntrack to nf flow table. 224 Once aged, the connection is returned to nf conntrack. 230 UDP connections may be offloaded from nf conntrack to nf flow table. 231 Once aged, the connection is returned to nf conntrack.
|
| /linux/scripts/ |
| H A D | generate_builtin_ranges.awk | 110 ARGIND == 2 && FNR == 1 && NF == 7 && $1 == "VMA" && $7 == "Symbol" { 123 ARGIND == 2 && map_is_lld && NF == 5 && /[0-9] [^ ]+$/ { 133 ARGIND == 2 && map_is_lld && !anchor && NF == 7 && raw_addr == "0x"$1 && $6 == "=" && $7 == "." { 143 ARGIND == 2 && map_is_lld && NF == 5 && $5 ~ /:\(/ { 159 ARGIND == 2 && map_is_lld && sect && !anchor && NF == 5 && $5 ~ /^[_A-Za-z][_A-Za-z0-9]*$/ { 174 ARGIND == 2 && !map_is_lld && NF == 1 && /^[^ ]/ { 189 ARGIND >= 2 && !map_is_lld && NF == 1 && /^ [^ \*]/ { 250 ARGIND == 2 && !anchor && NF == 4 && raw_addr == $1 && $3 == "=" && $4 == "." { 263 ARGIND == 2 && !anchor && NF == 2 && $1 ~ /^0x/ && $2 !~ /^0x/ { 284 ARGIND == 2 && sect && NF [all...] |
| H A D | verify_builtin_ranges.awk | 177 ARGIND >= 4 && FNR == 1 && NF == 7 && $1 == "VMA" && $7 == "Symbol" { 184 ARGIND >= 4 && map_is_lld && NF == 5 && /[0-9] [^ ]+$/ { 190 ARGIND >= 4 && map_is_lld && NF == 5 && $5 ~ /:\(/ { 202 ARGIND >= 4 && map_is_lld && NF == 5 && $5 ~ /^[A-Za-z_][A-Za-z0-9_]*$/ { 214 ARGIND >= 4 && !map_is_lld && NF == 1 && /^[^ ]/ { 250 ARGIND >= 4 && /^ [^ \*]/ && NF == 1 { 262 ARGIND == 4 && /^ [^ ]/ && NF == 4 { 288 ARGIND >= 4 && /^ [^ ]/ && NF == 4 { 310 ARGIND >= 4 && /^ / && NF == 2 && $1 ~ /^0x/ {
|
| /linux/Documentation/driver-api/surface_aggregator/ |
| H A D | client.rst | 348 u32 notifier_callback(struct ssam_event_notifier *nf, 360 struct ssam_event_notifier *nf) 363 nf->base.priority = 1; 366 nf->base.fn = notifier_callback; 369 nf->event.reg = SSAM_EVENT_REGISTRY_KIP; 372 nf->event.id.target_category = sdev->uid.category; 373 nf->event.id.instance = sdev->uid.instance; 380 nf->event.mask = SSAM_EVENT_MASK_STRICT; 383 nf->event.flags = SSAM_EVENT_SEQUENCED; 385 return ssam_notifier_register(sdev->ctrl, nf);
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | netfilter_link_attach.c | 60 ASSERT_EQ(info.netfilter.pf, nf_expected.pf, "info nf protocol family"); in verify_netfilter_link_info() 61 ASSERT_EQ(info.netfilter.hooknum, nf_expected.hooknum, "info nf hooknum"); in verify_netfilter_link_info() 62 ASSERT_EQ(info.netfilter.priority, nf_expected.priority, "info nf priority"); in verify_netfilter_link_info() 63 ASSERT_EQ(info.netfilter.flags, nf_expected.flags, "info nf flags"); in verify_netfilter_link_info()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9002_phy.c | 334 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/drivers/video/ |
| H A D | sticore.c | 526 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/drivers/gpu/drm/gma500/ |
| H A D | oaktrail_hdmi.c | 109 struct intel_range vco, np, nr, nf; member 115 int nf; member 132 .nf = { .min = NF_MIN, .max = NF_MAX }, 183 int np, nr, nf; in oaktrail_hdmi_find_dpll() local 201 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll() 202 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll() 205 * 1024 x 768 np = 1; nr = 0x26; nf = 0x0fd8000; in oaktrail_hdmi_find_dpll() 206 * 1280 x 1024 np = 1; nr = 0x17; nf = 0x1034000; in oaktrail_hdmi_find_dpll() 210 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll() 316 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | pedit_ip.sh | 95 if [ -f /proc/sys/net/bridge/bridge-nf-call-iptables ]; then 96 sysctl_set net.bridge.bridge-nf-call-iptables 0 104 if [ -f /proc/sys/net/bridge/bridge-nf-call-iptables ]; then 105 sysctl_restore net.bridge.bridge-nf-call-iptables
|
| /linux/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 143 if (NF != 1) { 146 for (i = 2; i <= NF; i++) 154 if (NF != 1) { 168 if (NF != 1) { 304 for (i = 4; i <= NF; i++) 317 while (i <= NF) { 333 else if (i < NF)
|
| /linux/include/linux/ |
| H A D | netfilter.h | 245 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook() 248 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook() 252 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook() 254 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook() 259 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook() 339 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST() 342 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
|
| /linux/tools/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 143 if (NF != 1) { 146 for (i = 2; i <= NF; i++) 154 if (NF != 1) { 168 if (NF != 1) { 304 for (i = 4; i <= NF; i++) 317 while (i <= NF) { 333 else if (i < NF)
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 561 struct frame *nf; in reassign_frame() local 564 nf = newframe(f->t->d); in reassign_frame() 565 if (!nf) in reassign_frame() 567 if (nf->t == f->t) { in reassign_frame() 568 aoe_freetframe(nf); in reassign_frame() 572 skb = nf->skb; in reassign_frame() 573 nf->skb = f->skb; in reassign_frame() 574 nf->buf = f->buf; in reassign_frame() 575 nf->iter = f->iter; in reassign_frame() 576 nf->waited = 0; in reassign_frame() [all …]
|