Home
last modified time | relevance | path

Searched full:cn (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/w1/
Dw1_netlink.c26 struct cn_msg *cn; /* advances as cn_msg is appeneded */ member
40 /* pointers within w1_cb_block and cn data */
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()
104 * @ack: determines if cn can be reused
106 * block->cn will be setup with the correct ack, advancing if needed
107 * block->cn->len does not include space for block->msg
112 if (block->cn && block->cn->ack == ack) { in w1_netlink_setup_msg()
[all …]
/kernel/linux/linux-4.19/drivers/w1/
Dw1_netlink.c35 struct cn_msg *cn; /* advances as cn_msg is appeneded */ member
49 /* pointers within w1_cb_block and cn data */
66 if (!block->cn) in w1_reply_len()
68 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
97 block->cn = NULL; in w1_reply_make_space()
106 if (!(block->request_cn.flags & W1_CN_BUNDLE) && block->cn) in w1_netlink_check_send()
113 * @ack: determines if cn can be reused
115 * block->cn will be setup with the correct ack, advancing if needed
116 * block->cn->len does not include space for block->msg
121 if (block->cn && block->cn->ack == ack) { in w1_netlink_setup_msg()
[all …]
/kernel/linux/linux-4.19/fs/
Dcoredump.c66 static int expand_corename(struct core_name *cn, int size) in expand_corename() argument
68 char *corename = krealloc(cn->corename, size, GFP_KERNEL); in expand_corename()
76 cn->size = ksize(corename); in expand_corename()
77 cn->corename = corename; in expand_corename()
81 static __printf(2, 0) int cn_vprintf(struct core_name *cn, const char *fmt, in cn_vprintf() argument
88 free = cn->size - cn->used; in cn_vprintf()
91 need = vsnprintf(cn->corename + cn->used, free, fmt, arg_copy); in cn_vprintf()
95 cn->used += need; in cn_vprintf()
99 if (!expand_corename(cn, cn->size + need - free + 1)) in cn_vprintf()
105 static __printf(2, 3) int cn_printf(struct core_name *cn, const char *fmt, ...) in cn_printf() argument
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/fs/reiserfs/
Djournal.c92 static int can_dirty(struct reiserfs_journal_cnode *cn);
371 struct reiserfs_journal_cnode *cn; in get_cnode() local
381 cn = journal->j_cnode_free_list; in get_cnode()
382 if (!cn) { in get_cnode()
383 return cn; in get_cnode()
385 if (cn->next) { in get_cnode()
386 cn->next->prev = NULL; in get_cnode()
388 journal->j_cnode_free_list = cn->next; in get_cnode()
389 memset(cn, 0, sizeof(struct reiserfs_journal_cnode)); in get_cnode()
390 return cn; in get_cnode()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/fs/nfsd/
Dnfs4recover.c717 struct cld_net *cn = nn->cld_net; in cld_pipe_downcall() local
733 spin_lock(&cn->cn_lock); in cld_pipe_downcall()
734 list_for_each_entry(tmp, &cn->cn_list, cu_list) { in cld_pipe_downcall()
741 spin_unlock(&cn->cn_lock); in cld_pipe_downcall()
829 struct cld_net *cn; in nfsd4_init_cld_pipe() local
834 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in nfsd4_init_cld_pipe()
835 if (!cn) { in nfsd4_init_cld_pipe()
840 cn->cn_pipe = rpc_mkpipe_data(&cld_upcall_ops, RPC_PIPE_WAIT_FOR_OPEN); in nfsd4_init_cld_pipe()
841 if (IS_ERR(cn->cn_pipe)) { in nfsd4_init_cld_pipe()
842 ret = PTR_ERR(cn->cn_pipe); in nfsd4_init_cld_pipe()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/net/ipv4/netfilter/
Dipt_CLUSTERIP.c119 struct clusterip_net *cn = clusterip_pernet(c->net); in clusterip_config_entry_put() local
122 if (refcount_dec_and_lock(&c->entries, &cn->lock)) { in clusterip_config_entry_put()
124 spin_unlock(&cn->lock); in clusterip_config_entry_put()
130 mutex_lock(&cn->mutex); in clusterip_config_entry_put()
131 if (cn->procdir) in clusterip_config_entry_put()
133 mutex_unlock(&cn->mutex); in clusterip_config_entry_put()
144 struct clusterip_net *cn = clusterip_pernet(net); in __clusterip_config_find() local
146 list_for_each_entry_rcu(c, &cn->configs, list) { in __clusterip_config_find()
197 struct clusterip_net *cn = clusterip_pernet(net); in clusterip_netdev_event() local
200 spin_lock_bh(&cn->lock); in clusterip_netdev_event()
[all …]
/kernel/linux/linux-5.10/drivers/phy/freescale/
Dphy-fsl-imx8-mipi-dphy.c51 #define CN(x) (((x) == 1) ? 0x1f : (((CN_BUF) >> ((x) - 1)) & 0x1f)) macro
83 u32 cn; member
185 * CN ranges between 1 and 32 in mixel_dphy_config_from_opts()
191 cfg->cn = denominator >> i; in mixel_dphy_config_from_opts()
196 cfg->cn < 1 || cfg->cn > 32 || in mixel_dphy_config_from_opts()
198 dev_err(&phy->dev, "Invalid CM/CN/CO values: %u/%u/%u\n", 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()
308 dev_err(&phy->dev, "Invalid CM/CN/CO values! (%u/%u/%u)\n", in mixel_dphy_set_pll_params()
309 priv->cfg.cm, priv->cfg.cn, priv->cfg.co); in mixel_dphy_set_pll_params()
[all …]
/kernel/liteos_m/
DREADME_zh.md80 …境和开发环境,详细介绍请参考官方站点[开发环境准备](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/quick-sta…
84 详细的源码获取方式,请见[源码获取](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/get-code/sourcecod…
116 [如何贡献](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/%E5%8F%82%E4%B8%8E%E8%B4%A1%E7…
124 [板级目录规范](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/porting/porting-chip-board-o…
126 [轻量系统芯片移植指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/porting/porting-minich…
128 [轻量系统芯片移植案例](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/porting/porting-minich…
132 [内核子系统](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%B3…
/kernel/liteos_a/
DREADME_zh-HK.md70 OpenHarmony LiteOS-A內核支持Hi3516DV300([介紹](https://gitee.com/openharmony/docs/blob/master/zh-cn/devic…
76 - [編譯環境凖備](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-l…
77 - Hi3516DV300單板:參考[環境搭建](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-star…
81 在Linux服務器上下載並解壓一套源代碼,源碼獲取方式參考[源碼獲取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev…
87 - [helloworld for Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quic…
91 [內核子系統](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%…
DREADME_zh.md69 OpenHarmony LiteOS-A内核支持[Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-d…
75 - [编译环境准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart…
76 - Hi3516DV300单板:参考[环境搭建](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-st…
80 在Linux服务器上下载并解压一套源代码,源码获取方式参考[源码获取](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev…
86 - [helloworld for Hi3516DV300](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/qu…
90 [内核子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%86%85%E6%A0%B8%E5%AD%90%E7%…
/kernel/linux/linux-4.19/arch/arm/kernel/
Dtopology.c88 struct device_node *cn = NULL; in parse_dt_topology() local
97 cn = of_find_node_by_path("/cpus"); in parse_dt_topology()
98 if (!cn) { in parse_dt_topology()
108 cn = of_get_cpu_node(cpu, NULL); in parse_dt_topology()
109 if (!cn) { in parse_dt_topology()
114 if (topology_parse_cpu_capacity(cn, cpu)) { in parse_dt_topology()
115 of_node_put(cn); in parse_dt_topology()
122 if (of_device_is_compatible(cn, cpu_eff->compatible)) in parse_dt_topology()
128 rate = of_get_property(cn, "clock-frequency", &len); in parse_dt_topology()
130 pr_err("%pOF missing clock-frequency property\n", cn); in parse_dt_topology()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dtc90522.c259 s64 cn; in tc90522s_get_frontend() local
268 /* cn = cnr << 3 */ in tc90522s_get_frontend()
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
[all …]
/kernel/linux/linux-4.19/drivers/media/dvb-frontends/
Dtc90522.c259 s64 cn; in tc90522s_get_frontend() local
268 /* cn = cnr << 3 */ in tc90522s_get_frontend()
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
[all …]
/kernel/linux/linux-4.19/drivers/connector/
DMakefile1 obj-$(CONFIG_CONNECTOR) += cn.o
4 cn-y += cn_queue.o connector.o
/kernel/linux/linux-5.10/drivers/connector/
DMakefile2 obj-$(CONFIG_CONNECTOR) += cn.o
5 cn-y += cn_queue.o connector.o
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Dgeneral.h8 * Wei WANG (wei_wang@realsil.com.cn)
9 * Micky Ching (micky_ching@realsil.com.cn)
Dgeneral.c8 * Wei WANG (wei_wang@realsil.com.cn)
9 * Micky Ching (micky_ching@realsil.com.cn)
Drtsx_sys.h8 * Wei WANG (wei_wang@realsil.com.cn)
9 * Micky Ching (micky_ching@realsil.com.cn)
/kernel/linux/linux-4.19/Documentation/translations/zh_CN/
Dstable_api_nonsense.txt10 Chinese maintainer: TripleX Chung <zhongyu@18mail.cn>
19 中文版维护者: 钟宇 TripleX Chung <zhongyu@18mail.cn>
20 中文版翻译者: 钟宇 TripleX Chung <zhongyu@18mail.cn>
/kernel/linux/linux-4.19/drivers/staging/rts5208/
Dgeneral.h20 * Wei WANG (wei_wang@realsil.com.cn)
21 * Micky Ching (micky_ching@realsil.com.cn)

12345678910>>...15