Home
last modified time | relevance | path

Searched refs:cn (Results 1 – 25 of 56) sorted by relevance

123

/Linux-v5.10/drivers/w1/
Dw1_netlink.c26 struct cn_msg *cn; /* advances as cn_msg is appeneded */ member
57 if (!block->cn) in w1_reply_len()
59 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
88 block->cn = NULL; in w1_reply_make_space()
97 if (!(block->request_cn.flags & W1_CN_BUNDLE) && block->cn) in w1_netlink_check_send()
112 if (block->cn && block->cn->ack == ack) { in w1_netlink_setup_msg()
113 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg()
116 if (block->cn) in w1_netlink_setup_msg()
117 block->cn = (struct cn_msg *)(block->cn->data + in w1_netlink_setup_msg()
118 block->cn->len); in w1_netlink_setup_msg()
[all …]
/Linux-v5.10/fs/
Dcoredump.c67 static int expand_corename(struct core_name *cn, int size) in expand_corename() argument
69 char *corename = krealloc(cn->corename, size, GFP_KERNEL); in expand_corename()
77 cn->size = ksize(corename); in expand_corename()
78 cn->corename = corename; in expand_corename()
82 static __printf(2, 0) int cn_vprintf(struct core_name *cn, const char *fmt, in cn_vprintf() argument
89 free = cn->size - cn->used; in cn_vprintf()
92 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf()
96 cn->used += need; in cn_vprintf()
100 if (!expand_corename(cn, cn->size + need - free + 1)) in cn_vprintf()
106 static __printf(2, 3) int cn_printf(struct core_name *cn, const char *fmt, ...) in cn_printf() argument
[all …]
/Linux-v5.10/fs/reiserfs/
Djournal.c90 static int can_dirty(struct reiserfs_journal_cnode *cn);
369 struct reiserfs_journal_cnode *cn; in get_cnode() local
379 cn = journal->j_cnode_free_list; in get_cnode()
380 if (!cn) { in get_cnode()
381 return cn; in get_cnode()
383 if (cn->next) { in get_cnode()
384 cn->next->prev = NULL; in get_cnode()
386 journal->j_cnode_free_list = cn->next; in get_cnode()
387 memset(cn, 0, sizeof(struct reiserfs_journal_cnode)); in get_cnode()
388 return cn; in get_cnode()
[all …]
/Linux-v5.10/net/ipv4/netfilter/
Dipt_CLUSTERIP.c115 struct clusterip_net *cn = clusterip_pernet(c->net); in clusterip_config_entry_put() local
118 if (refcount_dec_and_lock(&c->entries, &cn->lock)) { in clusterip_config_entry_put()
120 spin_unlock(&cn->lock); in clusterip_config_entry_put()
126 mutex_lock(&cn->mutex); in clusterip_config_entry_put()
127 if (cn->procdir) in clusterip_config_entry_put()
129 mutex_unlock(&cn->mutex); in clusterip_config_entry_put()
140 struct clusterip_net *cn = clusterip_pernet(net); in __clusterip_config_find() local
142 list_for_each_entry_rcu(c, &cn->configs, list) { in __clusterip_config_find()
193 struct clusterip_net *cn = clusterip_pernet(net); in clusterip_netdev_event() local
196 spin_lock_bh(&cn->lock); in clusterip_netdev_event()
[all …]
/Linux-v5.10/arch/arm/kernel/
Dtopology.c88 struct device_node *cn = NULL; in parse_dt_topology() local
102 cn = of_get_cpu_node(cpu, NULL); in parse_dt_topology()
103 if (!cn) { in parse_dt_topology()
108 if (topology_parse_cpu_capacity(cn, cpu)) { in parse_dt_topology()
109 of_node_put(cn); in parse_dt_topology()
116 if (of_device_is_compatible(cn, cpu_eff->compatible)) in parse_dt_topology()
122 rate = of_get_property(cn, "clock-frequency", &len); in parse_dt_topology()
124 pr_err("%pOF missing clock-frequency property\n", cn); in parse_dt_topology()
/Linux-v5.10/fs/nfsd/
Dnfs4recover.c796 struct cld_net *cn = nn->cld_net; in __cld_pipe_inprogress_downcall() local
837 cn->cn_has_legacy = true; in __cld_pipe_inprogress_downcall()
858 struct cld_net *cn = nn->cld_net; in cld_pipe_downcall() local
885 spin_lock(&cn->cn_lock); in cld_pipe_downcall()
886 list_for_each_entry(tmp, &cn->cn_list, cu_list) { in cld_pipe_downcall()
894 spin_unlock(&cn->cn_lock); in cld_pipe_downcall()
985 struct cld_net *cn; in __nfsd4_init_cld_pipe() local
990 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in __nfsd4_init_cld_pipe()
991 if (!cn) { in __nfsd4_init_cld_pipe()
996 cn->cn_pipe = rpc_mkpipe_data(&cld_upcall_ops, RPC_PIPE_WAIT_FOR_OPEN); in __nfsd4_init_cld_pipe()
[all …]
/Linux-v5.10/drivers/phy/freescale/
Dphy-fsl-imx8-mipi-dphy.c83 u32 cn; member
191 cfg->cn = denominator >> i; in mixel_dphy_config_from_opts()
196 cfg->cn < 1 || cfg->cn > 32 || in mixel_dphy_config_from_opts()
199 cfg->cm, cfg->cn, cfg->co); in mixel_dphy_config_from_opts()
306 priv->cfg.cn < 1 || priv->cfg.cn > 32 || in mixel_dphy_set_pll_params()
309 priv->cfg.cm, priv->cfg.cn, priv->cfg.co); in mixel_dphy_set_pll_params()
313 priv->cfg.cm, priv->cfg.cn, priv->cfg.co); in mixel_dphy_set_pll_params()
315 phy_write(phy, CN(priv->cfg.cn), DPHY_CN); in mixel_dphy_set_pll_params()
/Linux-v5.10/drivers/media/dvb-frontends/
Dtc90522.c259 s64 cn; in tc90522s_get_frontend() local
271 cn = div64_s64(-16346LL * p4 * p, 10) >> 35; in tc90522s_get_frontend()
272 cn += (14341LL * p4) >> 21; in tc90522s_get_frontend()
273 cn -= (50259LL * cndat * p) >> 23; in tc90522s_get_frontend()
274 cn += (88977LL * cndat) >> 9; in tc90522s_get_frontend()
275 cn -= (89565LL * p) >> 11; in tc90522s_get_frontend()
276 cn += 58857 << 3; in tc90522s_get_frontend()
277 stats->stat[0].svalue = cn >> 3; in tc90522s_get_frontend()
417 s64 cn; in tc90522t_get_frontend() local
428 cn = 24772; in tc90522t_get_frontend()
[all …]
/Linux-v5.10/drivers/connector/
DMakefile2 obj-$(CONFIG_CONNECTOR) += cn.o
5 cn-y += cn_queue.o connector.o
DKconfig11 will be called cn.
/Linux-v5.10/drivers/base/
Darch_topology.c446 struct device_node *cn, *map; in parse_dt_topology() local
450 cn = of_find_node_by_path("/cpus"); in parse_dt_topology()
451 if (!cn) { in parse_dt_topology()
460 map = of_get_child_by_name(cn, "cpu-map"); in parse_dt_topology()
481 of_node_put(cn); in parse_dt_topology()
/Linux-v5.10/net/ceph/
Dosdmap.c149 struct crush_name_node *cn; in alloc_crush_name() local
151 cn = kmalloc(sizeof(*cn) + name_len + 1, GFP_NOIO); in alloc_crush_name()
152 if (!cn) in alloc_crush_name()
155 RB_CLEAR_NODE(&cn->cn_node); in alloc_crush_name()
156 return cn; in alloc_crush_name()
159 static void free_crush_name(struct crush_name_node *cn) in free_crush_name() argument
161 WARN_ON(!RB_EMPTY_NODE(&cn->cn_node)); in free_crush_name()
163 kfree(cn); in free_crush_name()
174 struct crush_name_node *cn; in DEFINE_RB_FUNCS() local
182 cn = alloc_crush_name(name_len); in DEFINE_RB_FUNCS()
[all …]
/Linux-v5.10/drivers/mmc/host/
Dcavium-octeon.c149 struct device_node *cn, *node = pdev->dev.of_node; in octeon_mmc_probe() local
269 for_each_child_of_node(node, cn) { in octeon_mmc_probe()
271 of_platform_device_create(cn, NULL, &pdev->dev); in octeon_mmc_probe()
/Linux-v5.10/drivers/clk/
Dclk.c1484 struct clk_notifier *cn; in __clk_notify() local
1491 list_for_each_entry(cn, &clk_notifier_list, node) { in __clk_notify()
1492 if (cn->clk->core == core) { in __clk_notify()
1493 cnd.clk = cn->clk; in __clk_notify()
1494 ret = srcu_notifier_call_chain(&cn->notifier_head, msg, in __clk_notify()
4254 struct clk_notifier *cn; in clk_notifier_register() local
4263 list_for_each_entry(cn, &clk_notifier_list, node) in clk_notifier_register()
4264 if (cn->clk == clk) in clk_notifier_register()
4268 if (cn->clk != clk) { in clk_notifier_register()
4269 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in clk_notifier_register()
[all …]
/Linux-v5.10/drivers/video/fbdev/
Dpxa168fb.h213 #define CFG_CBSH_ENA(cn) ((cn) << 29) argument
223 #define CFG_HWC_ENA(cn) ((cn) << 24) argument
/Linux-v5.10/drivers/staging/rts5208/
DTODO7 Micky Ching <micky_ching@realsil.com.cn>
/Linux-v5.10/drivers/usb/gadget/
Dconfigfs.c647 struct gadget_config_name *cn = to_gadget_config_name(item); in gadget_config_name_attr_release() local
649 kfree(cn->configuration); in gadget_config_name_attr_release()
651 list_del(&cn->list); in gadget_config_name_attr_release()
652 kfree(cn); in gadget_config_name_attr_release()
1363 struct gadget_config_name *cn; in configfs_composite_bind() local
1371 list_for_each_entry(cn, &cfg->string_list, list) { in configfs_composite_bind()
1372 cfg->gstrings[i] = &cn->stringtab_dev; in configfs_composite_bind()
1373 cn->stringtab_dev.strings = &cn->strings; in configfs_composite_bind()
1374 cn->strings.s = cn->configuration; in configfs_composite_bind()
/Linux-v5.10/net/lapb/
Dlapb_in.c401 int cn; in lapb_state3_machine() local
402 cn = lapb_data_indication(lapb, skb); in lapb_state3_machine()
411 if (cn == NET_RX_DROP) { in lapb_state3_machine()
/Linux-v5.10/Documentation/translations/zh_CN/process/
Dsubmitting-drivers.rst129 ?? == 你的国家代码,例如 "cn"、"us"、"uk"、"fr" 等等
/Linux-v5.10/security/smack/
Dsmackfs.c1790 size_t cn, loff_t *ppos) in smk_read_ambient() argument
1805 if (cn >= asize) in smk_read_ambient()
1806 rc = simple_read_from_buffer(buf, cn, ppos, in smk_read_ambient()
2056 size_t cn, loff_t *ppos) in smk_read_unconfined() argument
2070 if (cn >= asize) in smk_read_unconfined()
2071 rc = simple_read_from_buffer(buf, cn, ppos, smack, asize); in smk_read_unconfined()
2608 size_t cn, loff_t *ppos) in smk_read_syslog() argument
2624 if (cn >= asize) in smk_read_syslog()
2625 rc = simple_read_from_buffer(buf, cn, ppos, skp->smk_known, in smk_read_syslog()
/Linux-v5.10/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.h422 #define CFG_CBSH_ENA(cn) ((cn)<<29) argument
432 #define CFG_HWC_ENA(cn) ((cn)<<24) argument
/Linux-v5.10/drivers/dma/
Dzx_dma.c220 struct zx_dma_chan *c, *cn; in zx_dma_task() local
225 list_for_each_entry_safe(c, cn, &d->slave.channels, in zx_dma_task()
876 struct zx_dma_chan *c, *cn; in zx_dma_remove() local
885 list_for_each_entry_safe(c, cn, &d->slave.channels, in zx_dma_remove()
Dk3dma.c304 struct k3_dma_chan *c, *cn; in k3_dma_tasklet() local
308 list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { in k3_dma_tasklet()
980 struct k3_dma_chan *c, *cn; in k3_dma_remove() local
988 list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { in k3_dma_remove()
/Linux-v5.10/drivers/gpu/drm/nouveau/
Dnouveau_connector.c463 struct device_node *cn, *dn = pci_device_to_OF_node(dev->pdev); in nouveau_connector_of_detect() local
470 for_each_child_of_node(dn, cn) { in nouveau_connector_of_detect()
471 const char *name = of_get_property(cn, "name", NULL); in nouveau_connector_of_detect()
472 const void *edid = of_get_property(cn, "EDID", NULL); in nouveau_connector_of_detect()
478 of_node_put(cn); in nouveau_connector_of_detect()
/Linux-v5.10/drivers/gpu/drm/i915/
Di915_debugfs.c303 struct i915_gem_context *ctx, *cn; in print_context_stats() local
306 list_for_each_entry_safe(ctx, cn, &i915->gem.contexts.list, link) { in print_context_stats()
353 list_safe_reset_next(ctx, cn, link); in print_context_stats()
1065 struct i915_gem_context *ctx, *cn; in i915_context_status() local
1068 list_for_each_entry_safe(ctx, cn, &i915->gem.contexts.list, link) { in i915_context_status()
1112 list_safe_reset_next(ctx, cn, link); in i915_context_status()

123