Home
last modified time | relevance | path

Searched full:helper (Results 1 – 25 of 1888) sorted by relevance

12345678910>>...76

/linux/net/netfilter/
H A Dnfnetlink_cthelper.c35 struct nf_conntrack_helper helper; member
45 struct nf_conntrack_helper *helper; in nfnl_userspace_cthelper() local
52 helper = rcu_dereference(help->helper); in nfnl_userspace_cthelper()
53 if (helper == NULL) in nfnl_userspace_cthelper()
56 /* This is a user-space helper not yet configured, skip. */ in nfnl_userspace_cthelper()
57 if ((helper->flags & in nfnl_userspace_cthelper()
62 /* If the user-space helper is not available, don't block traffic. */ in nfnl_userspace_cthelper()
63 return NF_QUEUE_NR(helper->queue_num) | NF_VERDICT_FLAG_QUEUE_BYPASS; in nfnl_userspace_cthelper()
99 const struct nf_conntrack_helper *helper; in nfnl_cthelper_from_nlattr() local
104 helper = rcu_dereference(help->helper); in nfnl_cthelper_from_nlattr()
[all …]
H A Dnf_conntrack_helper.c2 /* Helper handling for netfilter. */
85 if (request_module("nfct-helper-%s", name) == 0) { in nf_conntrack_helper_try_module_get()
106 void nf_conntrack_helper_put(struct nf_conntrack_helper *helper) in nf_conntrack_helper_put() argument
108 refcount_dec(&helper->refcnt); in nf_conntrack_helper_put()
109 module_put(helper->me); in nf_conntrack_helper_put()
165 void nf_nat_helper_put(struct nf_conntrack_helper *helper) in nf_nat_helper_put() argument
169 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put()
186 pr_debug("failed to add helper extension area"); in nf_ct_helper_ext_add()
194 struct nf_conntrack_helper *helper = NULL; in __nf_ct_try_assign_helper() local
197 /* We already got a helper explicitl in __nf_ct_try_assign_helper()
257 struct nf_conntrack_helper *helper; nf_ct_helper_destroy() local
325 const struct nf_conntrack_helper *helper; nf_ct_helper_log() local
428 nf_ct_helper_init(struct nf_conntrack_helper * helper,u16 l3num,u16 protonum,const char * name,u16 default_port,u16 spec_port,u32 id,const struct nf_conntrack_expect_policy * exp_pol,u32 expect_class_max,int (* help)(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo),int (* from_nlattr)(struct nlattr * attr,struct nf_conn * ct),struct module * module) nf_ct_helper_init() argument
458 nf_conntrack_helpers_register(struct nf_conntrack_helper * helper,unsigned int n) nf_conntrack_helpers_register() argument
478 nf_conntrack_helpers_unregister(struct nf_conntrack_helper * helper,unsigned int n) nf_conntrack_helpers_unregister() argument
[all...]
H A Dnf_conntrack_ovs.c15 const struct nf_conntrack_helper *helper; in nf_ct_helper() local
27 helper = rcu_dereference(help->helper); in nf_ct_helper()
28 if (!helper) in nf_ct_helper()
31 if (helper->tuple.src.l3num != NFPROTO_UNSPEC && in nf_ct_helper()
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
56 WARN_ONCE(1, "helper invoked on non-IP family!"); in nf_ct_helper()
60 if (helper->tuple.dst.protonum != proto) in nf_ct_helper()
63 err = helper->help(skb, protoff, ct, ctinfo); in nf_ct_helper()
67 /* Adjust seqs after helper in nf_ct_helper()
81 struct nf_conntrack_helper *helper; nf_ct_add_helper() local
[all...]
H A Dxt_CT.c77 struct nf_conntrack_helper *helper; in xt_ct_set_helper() local
87 helper = nf_conntrack_helper_try_module_get(helper_name, par->family, in xt_ct_set_helper()
89 if (helper == NULL) { in xt_ct_set_helper()
90 pr_info_ratelimited("No such helper \"%s\"\n", helper_name); in xt_ct_set_helper()
96 nf_conntrack_helper_put(helper); in xt_ct_set_helper()
100 rcu_assign_pointer(help->helper, helper); in xt_ct_set_helper()
142 struct nf_conntrack_helper *helper; in xt_ct_put_helper() local
150 helper = rcu_dereference_raw(help->helper); in xt_ct_put_helper()
151 if (helper) in xt_ct_put_helper()
152 nf_conntrack_helper_put(helper); in xt_ct_put_helper()
[all …]
H A Dnf_conntrack_broadcast.c3 * broadcast connection tracking helper
23 const struct nf_conntrack_helper *helper; in nf_conntrack_broadcast_help() local
64 helper = rcu_dereference(help->helper); in nf_conntrack_broadcast_help()
65 if (helper) in nf_conntrack_broadcast_help()
66 exp->tuple.src.u.udp.port = helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
74 rcu_assign_pointer(exp->helper, helper); in nf_conntrack_broadcast_help()
89 MODULE_DESCRIPTION("Broadcast connection tracking helper");
H A Dxt_helper.c29 const struct nf_conntrack_helper *helper; in helper_mt() local
42 helper = rcu_dereference(master_help->helper); in helper_mt()
43 if (!helper) in helper_mt()
49 ret ^= !strncmp(helper->name, info->name, in helper_mt()
50 strlen(helper->name)); in helper_mt()
75 .name = "helper",
H A Dnf_conntrack_expect.c46 /* nf_conntrack_expect helper functions */
318 * master's helper is safe, because the packet holds a reference on
327 struct nf_conntrack_helper *helper = NULL; in nf_ct_expect_init() local
344 helper = rcu_dereference(help->helper); in nf_ct_expect_init()
346 rcu_assign_pointer(exp->helper, helper); in nf_ct_expect_init()
411 struct nf_conntrack_helper *helper; in nf_ct_expect_insert() local
419 helper = rcu_dereference_protected(master_help->helper, in nf_ct_expect_insert()
421 if (helper) { in nf_ct_expect_insert()
423 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert()
461 struct nf_conntrack_helper *helper; in __nf_ct_expect_check() local
[all …]
H A Dnf_conntrack_netbios_ns.c3 * NetBIOS name service broadcast connection tracking helper
8 * This helper tracks locally originating NetBIOS name service
27 MODULE_DESCRIPTION("NetBIOS name service broadcast connection tracking helper");
47 static struct nf_conntrack_helper helper __read_mostly = {
62 return nf_conntrack_helper_register(&helper); in nf_conntrack_netbios_ns_init()
67 nf_conntrack_helper_unregister(&helper); in nf_conntrack_netbios_ns_fini()
/linux/drivers/net/wireless/marvell/libertas/
H A Dfirmware.c16 const struct firmware *helper, const struct firmware *mainfw) in lbs_fw_loaded() argument
22 /* User must free helper/mainfw */ in lbs_fw_loaded()
23 priv->fw_callback(priv, ret, helper, mainfw); in lbs_fw_loaded()
79 /* No main firmware needed for this helper --> success! */ in helper_firmware_cb()
99 if (!iter->helper) { in load_next_firmware_from_table()
111 do_load_firmware(priv, iter->helper, helper_firmware_cb); in load_next_firmware_from_table()
121 * either a helper firmware and a main firmware (2-stage), or just the helper.
128 * terminated by an entry with a NULL helper name
164 * terminated by an entry with a NULL helper name
165 * @helper: On success, the helper firmware; caller must free
[all …]
/linux/drivers/gpu/drm/msm/
H A Dmsm_fbdev.c34 struct drm_fb_helper *helper = (struct drm_fb_helper *)info->par; in FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS() local
35 struct drm_gem_object *bo = msm_framebuffer_bo(helper->fb, 0); in FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS()
42 struct drm_fb_helper *helper = (struct drm_fb_helper *)info->par; in msm_fbdev_fb_destroy() local
43 struct drm_framebuffer *fb = helper->fb; in msm_fbdev_fb_destroy()
48 drm_fb_helper_fini(helper); in msm_fbdev_fb_destroy()
54 drm_client_release(&helper->client); in msm_fbdev_fb_destroy()
66 static int msm_fbdev_fb_dirty(struct drm_fb_helper *helper, in msm_fbdev_fb_dirty() argument
69 struct drm_device *dev = helper->dev; in msm_fbdev_fb_dirty()
76 if (helper->fb->funcs->dirty) { in msm_fbdev_fb_dirty()
77 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in msm_fbdev_fb_dirty()
[all …]
/linux/arch/mips/cavium-octeon/executive/
H A DMakefile14 cvmx-helper-board.o cvmx-helper.o cvmx-helper-xaui.o \
15 cvmx-helper-rgmii.o cvmx-helper-sgmii.o cvmx-helper-npi.o \
16 cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
19 obj-y += cvmx-helper-errata.o cvmx-helper-jtag.o cvmx-boot-vector.o
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_fbdev.c30 struct drm_fb_helper *helper = info->par; in exynos_drm_fb_mmap() local
31 struct drm_gem_object *obj = drm_gem_fb_get_obj(helper->fb, 0); in exynos_drm_fb_mmap()
57 static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, in exynos_drm_fbdev_update() argument
61 struct fb_info *fbi = helper->info; in exynos_drm_fbdev_update()
62 struct drm_framebuffer *fb = helper->fb; in exynos_drm_fbdev_update()
68 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update()
84 int exynos_drm_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper, in exynos_drm_fbdev_driver_fbdev_probe() argument
88 struct drm_device *dev = helper->dev; in exynos_drm_fbdev_driver_fbdev_probe()
110 helper->fb = in exynos_drm_fbdev_driver_fbdev_probe()
115 if (IS_ERR(helper->fb)) { in exynos_drm_fbdev_driver_fbdev_probe()
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_fbdev.c45 struct drm_fb_helper *helper = fbdev->dev->fb_helper; in pan_worker() local
46 struct fb_info *fbi = helper->info; in pan_worker()
47 struct drm_gem_object *bo = drm_gem_fb_get_obj(helper->fb, 0); in pan_worker()
61 struct drm_fb_helper *helper = get_fb(fbi); in FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS() local
65 if (!helper) in FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS()
68 priv = helper->dev->dev_private; in FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS()
94 struct drm_fb_helper *helper = info->par; in omap_fbdev_fb_destroy() local
95 struct drm_framebuffer *fb = helper->fb; in omap_fbdev_fb_destroy()
101 drm_fb_helper_fini(helper); in omap_fbdev_fb_destroy()
106 drm_client_release(&helper->client); in omap_fbdev_fb_destroy()
[all …]
/linux/scripts/
H A Dbpf_doc.py16 helpersDocStart = 'Start of BPF helper function descriptions:'
54 class Helper(APIElement): class
56 An object representing the description of an eBPF helper function.
57 @proto: function prototype of the helper function
58 @desc: textual description of the helper function
59 @ret: description of the return value of the helper function
68 Break down helper function protocol into smaller chunks: return type,
107 list of eBPF helper functions. All the helpers that can be retrieved are
108 stored as Helper object, in the self.helpers() array.
135 return Helper(proto=proto, desc=desc, ret=ret, attrs=attrs)
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_helper_packet_access.c16 __description("helper access to packet: test1, valid packet_ptr range")
41 __description("helper access to packet: test2, unchecked packet_ptr")
59 __description("helper access to packet: test3, variable add")
89 __description("helper access to packet: test4, packet_ptr with bad range")
114 __description("helper access to packet: test5, packet_ptr with too short range")
138 __description("helper access to packet: test6, cls valid packet_ptr range")
163 __description("helper access to packet: test7, cls unchecked packet_ptr")
181 __description("helper access to packet: test8, cls variable add")
211 __description("helper access to packet: test9, cls packet_ptr with bad range")
236 __description("helper access to packet: test10, cls packet_ptr with too short range")
[all …]
H A Dverifier_helper_value_access.c42 __description("helper access to map: full range")
68 __description("helper access to map: partial range")
98 __description("helper access to map: empty range")
125 __description("helper access to map: possibly-empty ange")
154 __description("helper access to map: out-of-bound range")
180 __description("helper access to map: negative range")
205 __description("helper access to adjusted map (via const imm): full range")
233 __description("helper access to adjusted map (via const imm): partial range")
260 __description("helper access to adjusted map (via const imm): empty range")
286 __description("helper access to adjusted map (via const imm): out-of-bound range")
[all …]
H A Dverifier_helper_access_var_len.c35 __description("helper access to variable memory: stack, bitwise AND + JMP, correct bounds")
67 __description("helper access to variable memory: stack, bitwise AND, zero included")
87 /* Call bpf_ringbuf_output(), it is one of a few helper functions with\ in stack_bitwise_and_zero_included()
102 __description("helper access to variable memory: stack, bitwise AND + JMP, wrong max")
125 __description("helper access to variable memory: stack, JMP, correct bounds")
157 __description("helper access to variable memory: stack, JMP (signed), correct bounds")
189 __description("helper access to variable memory: stack, JMP, bounds + offset")
213 __description("helper access to variable memory: stack, JMP, wrong max")
236 __description("helper access to variable memory: stack, JMP, no max check")
260 __description("helper access to variable memory: stack, JMP, no min check")
[all …]
/linux/drivers/gpu/drm/tegra/
H A Dfbdev.c27 struct drm_fb_helper *helper = info->par; in tegra_fb_mmap() local
31 bo = tegra_fb_get_plane(helper->fb, 0); in tegra_fb_mmap()
42 struct drm_fb_helper *helper = info->par; in tegra_fbdev_fb_destroy() local
43 struct drm_framebuffer *fb = helper->fb; in tegra_fbdev_fb_destroy()
46 drm_fb_helper_fini(helper); in tegra_fbdev_fb_destroy()
55 drm_client_release(&helper->client); in tegra_fbdev_fb_destroy()
70 int tegra_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper, in tegra_fbdev_driver_fbdev_probe() argument
73 struct tegra_drm *tegra = helper->dev->dev_private; in tegra_fbdev_driver_fbdev_probe()
74 struct drm_device *drm = helper->dev; in tegra_fbdev_driver_fbdev_probe()
76 struct fb_info *info = helper->info; in tegra_fbdev_driver_fbdev_probe()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_fb_helper.c6 * DRM framebuffer helper functions
81 * The fb helper functions are useful to provide an fbdev on top of a drm kernel
83 * helper functions used by many drivers to implement the kernel mode setting
90 * All other functions exported by the fb helper library can be used to
95 * helper must be called first to initialize the minimum required to make
100 * encoders and connectors. To finish up the fbdev helper initialization, the
156 * @fb_helper: driver-allocated fbdev helper, can be NULL
159 * This helper should be called from fbdev emulation's &drm_client_funcs.restore
184 * @info: fbdev registered by the helper
219 struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, in drm_fb_helper_resume_worker() local
[all …]
/linux/tools/testing/vma/
H A Dshared.h57 * Helper function which provides a wrapper around a merge existing VMA
65 * Helper function to allocate a VMA and link it to the tree.
71 /* Helper function providing a dummy vm_ops->close() method.*/
76 /* Helper function to simply allocate a VMA. */
81 /* Helper function to detach and free a VMA. */
84 /* Helper function to allocate a VMA and link it to the tree. */
90 * Helper function to reset the dummy anon_vma to indicate it has not been
96 * Helper function to remove all VMAs and destroy the maple tree associated with
101 /* Helper function to determine if VMA has had vma_start_write() performed. */
111 /* Helper function to specify a VMA's range. */
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_conntrack_helper.sh3 # This tests connection tracking helper assignment:
4 # 1. can attach ftp helper to a connection from nft ruleset.
51 ct helper ftp {
56 tcp dport 2121 ct helper set "ftp"
60 tcp dport 2121 ct helper set "ftp"
79 …xec "$netns" conntrack -L -f $family -p tcp --dport "$port" 2> /dev/null |grep -q 'helper=ftp';then
81 echo "FAIL: ${netns} did not show attached helper $message" 1>&2
84 echo "PASS: ${netns} did not show attached helper $message" 1>&2
88 echo "PASS: ${netns} connection on port $port has ftp helper attached" 1>&2
90 echo "FAIL: ${netns} connection on port $port has ftp helper attached" 1>&2
/linux/include/linux/
H A Dmii.h93 * A small helper function for a common case. Returns one
111 * A small helper function that translates ethtool advertisement
139 * A small helper function that translates linkmode advertisement
167 * A small helper function that translates MII_ADVERTISE bits
194 * A small helper function that translates ethtool advertisement
214 * A small helper function that translates linkmode advertisement
237 * A small helper function that translates MII_CTRL1000
257 * A small helper function that translates MII_LPA
275 * A small helper function that translates MII_STAT1000
296 * A small helper function that translates MII_STAT1000 bits, when in
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_priv.h48 /* Helper struct for accessing a struct containing list_head array.
50 * |- Helper array
51 * [0] Helper item 0
54 * [1] Helper item 1
58 * 1. Get the helper item from the list_head item using
59 * helper item =
60 * container_of(list_head item, helper struct type, list_head field)
61 * 2. Get the contining struct from the helper item and its index in the array:
63 * container_of(helper item, containing struct type, helper field[index])
/linux/drivers/media/v4l2-core/
H A Dv4l2-ctrls-api.c21 /* Internal temporary helper struct, one for each v4l2_ext_control */
35 * Helper functions to copy control payload data from kernel space to
39 /* Helper function: copy the given control value back to the caller */
69 /* Helper function: copy the current control value back to the caller */
75 /* Helper function: copy the new control value back to the caller */
82 /* Helper function: copy the request value back to the caller */
89 /* Helper function: copy the initial control value back to the caller */
97 /* Helper function: copy the minimum control value back to the caller */
105 /* Helper function: copy the maximum control value back to the caller */
113 /* Helper function: copy the caller-provider value as the new control value */
[all …]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-helper.h30 * Helper functions for common, but complicated tasks.
64 #include <asm/octeon/cvmx-helper-errata.h>
65 #include <asm/octeon/cvmx-helper-loop.h>
66 #include <asm/octeon/cvmx-helper-npi.h>
67 #include <asm/octeon/cvmx-helper-rgmii.h>
68 #include <asm/octeon/cvmx-helper-sgmii.h>
69 #include <asm/octeon/cvmx-helper-spi.h>
70 #include <asm/octeon/cvmx-helper-util.h>
71 #include <asm/octeon/cvmx-helper-xaui.h>

12345678910>>...76