Home
last modified time | relevance | path

Searched refs:nc (Results 1 – 45 of 45) sorted by relevance

/linux-4.1.27/drivers/mtd/nand/
Dorion_nand.c28 struct nand_chip *nc = mtd->priv; in orion_nand_cmd_ctrl() local
29 struct orion_nand_data *board = nc->priv; in orion_nand_cmd_ctrl()
42 if (nc->options & NAND_BUSWIDTH_16) in orion_nand_cmd_ctrl()
45 writeb(cmd, nc->IO_ADDR_W + offs); in orion_nand_cmd_ctrl()
80 struct nand_chip *nc; in orion_nand_probe() local
88 nc = devm_kzalloc(&pdev->dev, in orion_nand_probe()
91 if (!nc) in orion_nand_probe()
93 mtd = (struct mtd_info *)(nc + 1); in orion_nand_probe()
126 mtd->priv = nc; in orion_nand_probe()
129 nc->priv = board; in orion_nand_probe()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Dppc4xx_ocm.c68 struct ocm_region nc; /* non-cached region */ member
160 ocm->nc.phys = ocm->phys; in ocm_init_node()
161 ocm->nc.memtotal = ocm->memtotal - ocm->cache_size; in ocm_init_node()
162 ocm->nc.memfree = ocm->nc.memtotal; in ocm_init_node()
164 ocm->c.phys = ocm->phys + ocm->nc.memtotal; in ocm_init_node()
168 if (ocm->nc.memtotal == 0) in ocm_init_node()
169 ocm->nc.phys = 0; in ocm_init_node()
175 ocm->index, ocm->nc.memtotal); in ocm_init_node()
181 if (ocm->nc.memtotal) { in ocm_init_node()
183 ocm->nc.virt = __ioremap(ocm->nc.phys, ocm->nc.memtotal, in ocm_init_node()
[all …]
/linux-4.1.27/drivers/platform/x86/
Dintel_scu_ipc.c216 int nc; in pwr_reg_rdwr() local
231 for (nc = 0; nc < count; nc++, offset += 2) { in pwr_reg_rdwr()
232 cbuf[offset] = addr[nc]; in pwr_reg_rdwr()
233 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr()
237 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
238 ipc_data_writel(wbuf[nc], offset); in pwr_reg_rdwr()
241 for (nc = 0; nc < count; nc++, offset += 1) in pwr_reg_rdwr()
242 cbuf[offset] = data[nc]; in pwr_reg_rdwr()
243 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
244 ipc_data_writel(wbuf[nc], offset); in pwr_reg_rdwr()
[all …]
/linux-4.1.27/include/linux/
Dnls.h63 unsigned char nc = t->charset2lower[c]; in nls_tolower() local
65 return nc ? nc : c; in nls_tolower()
70 unsigned char nc = t->charset2upper[c]; in nls_toupper() local
72 return nc ? nc : c; in nls_toupper()
/linux-4.1.27/Documentation/video4linux/
Dlifeview.txt24 /* nc MDT2005 PA3 pin 2 */
27 /* nc MDT2005 PA0 pin 17 strap low */
34 /* GP15 nc */
35 /* GP14 nc */
36 /* GP13 nc */
42 /* GP07.00 nc */
/linux-4.1.27/net/batman-adv/
Dnetwork-coding.c56 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer()
120 bat_priv->nc.timestamp_fwd_flush = jiffies; in batadv_nc_mesh_init()
121 bat_priv->nc.timestamp_sniffed_purge = jiffies; in batadv_nc_mesh_init()
123 if (bat_priv->nc.coding_hash || bat_priv->nc.decoding_hash) in batadv_nc_mesh_init()
126 bat_priv->nc.coding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
127 if (!bat_priv->nc.coding_hash) in batadv_nc_mesh_init()
130 batadv_hash_set_lock_class(bat_priv->nc.coding_hash, in batadv_nc_mesh_init()
133 bat_priv->nc.decoding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
134 if (!bat_priv->nc.decoding_hash) in batadv_nc_mesh_init()
137 batadv_hash_set_lock_class(bat_priv->nc.decoding_hash, in batadv_nc_mesh_init()
[all …]
Dtypes.h825 struct batadv_priv_nc nc; member
/linux-4.1.27/fs/nls/
Dnls_base.c58 int c0, c, nc; in utf8_to_utf32() local
61 nc = 0; in utf8_to_utf32()
65 nc++; in utf8_to_utf32()
72 return nc; in utf8_to_utf32()
74 if (inlen <= nc) in utf8_to_utf32()
89 int c, nc; in utf32_to_utf8() local
99 nc = 0; in utf32_to_utf8()
101 nc++; in utf32_to_utf8()
110 return nc; in utf32_to_utf8()
/linux-4.1.27/net/netfilter/
Dnfnetlink.c156 const struct nfnl_callback *nc; in nfnetlink_rcv_msg() local
182 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg()
183 if (!nc) { in nfnetlink_rcv_msg()
203 if (nc->call_rcu) { in nfnetlink_rcv_msg()
204 err = nc->call_rcu(net->nfnl, skb, nlh, in nfnetlink_rcv_msg()
212 nfnetlink_find_client(type, ss) != nc) in nfnetlink_rcv_msg()
214 else if (nc->call) in nfnetlink_rcv_msg()
215 err = nc->call(net->nfnl, skb, nlh, in nfnetlink_rcv_msg()
278 const struct nfnl_callback *nc; in nfnetlink_rcv_batch() local
357 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_batch()
[all …]
Dnf_tables_api.c712 struct nft_chain *chain, *nc; in nft_flush_table() local
733 list_for_each_entry_safe(chain, nc, &ctx->table->chains, list) { in nft_flush_table()
/linux-4.1.27/drivers/spi/
Dspi.c1162 of_register_spi_device(struct spi_master *master, struct device_node *nc) in of_register_spi_device() argument
1172 nc->full_name); in of_register_spi_device()
1178 rc = of_modalias_node(nc, spi->modalias, in of_register_spi_device()
1182 nc->full_name); in of_register_spi_device()
1187 rc = of_property_read_u32(nc, "reg", &value); in of_register_spi_device()
1190 nc->full_name, rc); in of_register_spi_device()
1196 if (of_find_property(nc, "spi-cpha", NULL)) in of_register_spi_device()
1198 if (of_find_property(nc, "spi-cpol", NULL)) in of_register_spi_device()
1200 if (of_find_property(nc, "spi-cs-high", NULL)) in of_register_spi_device()
1202 if (of_find_property(nc, "spi-3wire", NULL)) in of_register_spi_device()
[all …]
Dspi-fsl-espi.c647 struct device_node *nc; in fsl_espi_probe() local
698 for_each_available_child_of_node(master->dev.of_node, nc) { in fsl_espi_probe()
700 prop = of_get_property(nc, "reg", &len); in fsl_espi_probe()
709 prop = of_get_property(nc, "fsl,csbef", &len); in fsl_espi_probe()
715 prop = of_get_property(nc, "fsl,csaft", &len); in fsl_espi_probe()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_req.c583 struct net_conf *nc; in __req_mod() local
605 nc = rcu_dereference(connection->net_conf); in __req_mod()
606 p = nc->wire_protocol; in __req_mod()
718 nc = rcu_dereference(connection->net_conf); in __req_mod()
719 p = nc->max_epoch_size; in __req_mod()
1001 struct net_conf *nc; in maybe_pull_ahead() local
1006 nc = rcu_dereference(connection->net_conf); in maybe_pull_ahead()
1007 on_congestion = nc ? nc->on_congestion : OC_BLOCK; in maybe_pull_ahead()
1023 if (nc->cong_fill && in maybe_pull_ahead()
1024 atomic_read(&device->ap_in_flight) >= nc->cong_fill) { in maybe_pull_ahead()
[all …]
Ddrbd_receiver.c256 struct net_conf *nc; in drbd_alloc_pages() local
261 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
262 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages()
573 struct net_conf *nc; in drbd_try_connect() local
579 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
580 if (!nc) { in drbd_try_connect()
584 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
585 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
586 connect_int = nc->connect_int; in drbd_try_connect()
679 struct net_conf *nc; in prepare_listen_socket() local
[all …]
Ddrbd_proc.c243 struct net_conf *nc; in drbd_seq_show() local
293 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_seq_show()
294 wp = nc ? nc->wire_protocol - DRBD_PROT_A + 'A' : ' '; in drbd_seq_show()
Ddrbd_main.c731 struct net_conf *nc; in drbd_send_sync_param() local
740 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param()
744 + strlen(nc->verify_alg) + 1 in drbd_send_sync_param()
770 strcpy(p->verify_alg, nc->verify_alg); in drbd_send_sync_param()
772 strcpy(p->csums_alg, nc->csums_alg); in drbd_send_sync_param()
782 struct net_conf *nc; in __drbd_send_protocol() local
791 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol()
793 if (nc->tentative && connection->agreed_pro_version < 92) { in __drbd_send_protocol()
802 size += strlen(nc->integrity_alg) + 1; in __drbd_send_protocol()
804 p->protocol = cpu_to_be32(nc->wire_protocol); in __drbd_send_protocol()
[all …]
Ddrbd_state.c555 struct net_conf *nc; in is_valid_state() local
564 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in is_valid_state()
565 if (nc) { in is_valid_state()
566 if (!nc->two_primaries && ns.role == R_PRIMARY) { in is_valid_state()
606 (nc->verify_alg[0] == 0)) in is_valid_state()
690 is_valid_conn_transition(enum drbd_conns oc, enum drbd_conns nc) in is_valid_conn_transition() argument
693 if (oc == nc) in is_valid_conn_transition()
697 if (oc == C_STANDALONE && nc == C_DISCONNECTING) in is_valid_conn_transition()
701 if (oc == C_STANDALONE && nc != C_UNCONNECTED) in is_valid_conn_transition()
706 if (oc < C_WF_REPORT_PARAMS && nc >= C_CONNECTED) in is_valid_conn_transition()
[all …]
Ddrbd_worker.c1809 struct net_conf *nc; in drbd_start_resync() local
1813 nc = rcu_dereference(connection->net_conf); in drbd_start_resync()
1814 timeo = nc->ping_int * HZ + nc->ping_timeo * HZ / 9; in drbd_start_resync()
2003 struct net_conf *nc; in wait_for_work() local
2017 nc = rcu_dereference(connection->net_conf); in wait_for_work()
2018 uncork = nc ? nc->tcp_cork : 0; in wait_for_work()
2072 nc = rcu_dereference(connection->net_conf); in wait_for_work()
2073 cork = nc ? nc->tcp_cork : 0; in wait_for_work()
Ddrbd_nl.c569 struct net_conf *nc; in drbd_set_role() local
637 nc = rcu_dereference(connection->net_conf); in drbd_set_role()
638 timeo = nc ? (nc->ping_timeo + 1) * HZ / 10 : 1; in drbd_set_role()
672 nc = connection->net_conf; in drbd_set_role()
673 if (nc) in drbd_set_role()
674 nc->discard_my_data = 0; /* without copy; single bit op is atomic */ in drbd_set_role()
1470 struct net_conf *nc; in drbd_adm_attach() local
1549 nc = rcu_dereference(connection->net_conf); in drbd_adm_attach()
1550 if (nc) { in drbd_adm_attach()
1551 if (new_disk_conf->fencing == FP_STONITH && nc->wire_protocol == DRBD_PROT_A) { in drbd_adm_attach()
[all …]
Ddrbd_int.h2138 struct net_conf *nc; in drbd_get_max_buffers() local
2142 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
2143 mxb = nc ? nc->max_buffers : 1000000; /* arbitrary limit on open requests */ in drbd_get_max_buffers()
/linux-4.1.27/fs/fat/
Dnamei_vfat.c502 unsigned char nc; in xlate_to_uni() local
526 nc = ip[k]; in xlate_to_uni()
528 if (nc >= '0' && nc <= '9') { in xlate_to_uni()
529 ec |= nc - '0'; in xlate_to_uni()
532 if (nc >= 'a' && nc <= 'f') { in xlate_to_uni()
533 ec |= nc - ('a' - 10); in xlate_to_uni()
536 if (nc >= 'A' && nc <= 'F') { in xlate_to_uni()
537 ec |= nc - ('A' - 10); in xlate_to_uni()
Ddir.c217 unsigned char nc = t->charset2lower[*c]; in fat_short2lower_uni() local
219 if (!nc) in fat_short2lower_uni()
220 nc = *c; in fat_short2lower_uni()
222 charlen = t->char2uni(&nc, 1, uni); in fat_short2lower_uni()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/
Dg98.fuc0s156 bra nc #ctxload
177 bra nc #dummyload
190 bra nc #ctxload_dma_loop
219 bra nc #dtable_cmd
223 bra nc #dtable_cmd
225 bra nc #dma_cmd
239 bra nc #illegal_mthd
251 bra nc #illegal_mthd
344 bra nc #return
351 bra nc #cmd_cond_mode_queryful
[all …]
/linux-4.1.27/ipc/
Dmqueue.c1186 struct sk_buff *nc; in SYSCALL_DEFINE2() local
1196 nc = NULL; in SYSCALL_DEFINE2()
1211 nc = alloc_skb(NOTIFY_COOKIE_LEN, GFP_KERNEL); in SYSCALL_DEFINE2()
1212 if (!nc) { in SYSCALL_DEFINE2()
1216 if (copy_from_user(nc->data, in SYSCALL_DEFINE2()
1224 skb_put(nc, NOTIFY_COOKIE_LEN); in SYSCALL_DEFINE2()
1241 ret = netlink_attachskb(sock, nc, &timeo, NULL); in SYSCALL_DEFINE2()
1246 nc = NULL; in SYSCALL_DEFINE2()
1281 info->notify_cookie = nc; in SYSCALL_DEFINE2()
1283 nc = NULL; in SYSCALL_DEFINE2()
[all …]
/linux-4.1.27/drivers/tty/
Dn_gsm.c2774 static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc) in gsm_create_network() argument
2788 if (nc->protocol != htons(ETH_P_IP)) in gsm_create_network()
2791 if (nc->adaption != 3 && nc->adaption != 4) in gsm_create_network()
2797 if (nc->if_name[0] != '\0') in gsm_create_network()
2798 netname = nc->if_name; in gsm_create_network()
2809 strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */ in gsm_create_network()
2814 dlci->adaption = nc->adaption; in gsm_create_network()
3091 struct gsm_netconfig nc; in gsmtty_ioctl() local
3098 if (copy_from_user(&nc, (void __user *)arg, sizeof(nc))) in gsmtty_ioctl()
3100 nc.if_name[IFNAMSIZ-1] = '\0'; in gsmtty_ioctl()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_intr.c502 unsigned long nc; in handle_frequent_errors() local
511 nc = jiffies; in handle_frequent_errors()
513 if (time_before(nc, nextmsg_time)) { in handle_frequent_errors()
516 nextmsg_time = nc + HZ * 3; in handle_frequent_errors()
524 else if (!nmsgs++ || time_after(nc, nextmsg_time)) in handle_frequent_errors()
525 nextmsg_time = nc + HZ / 2; in handle_frequent_errors()
/linux-4.1.27/drivers/input/
Dinput-mt.c329 static void find_reduced_matrix(int *w, int nr, int nc, int nrc, int mu) in find_reduced_matrix() argument
335 adjust_dual(w + i, nr, w + i + nrc, nr <= nc, mu); in find_reduced_matrix()
338 sum += adjust_dual(w + i, 1, w + i + nr, nc <= nr, mu); in find_reduced_matrix()
/linux-4.1.27/fs/ncpfs/
Dncplib_kernel.c1141 unsigned char nc; in ncp__io2vol() local
1143 nc = iname[k] - '0'; in ncp__io2vol()
1144 if (nc >= 10) { in ncp__io2vol()
1145 nc -= 'A' - '0' - 10; in ncp__io2vol()
1146 if ((nc < 10) || (nc > 15)) { in ncp__io2vol()
1150 ec = (ec << 4) | nc; in ncp__io2vol()
/linux-4.1.27/fs/nilfs2/
Dpage.c448 unsigned nc = 0; in nilfs_page_count_clean_buffers() local
455 nc++; in nilfs_page_count_clean_buffers()
457 return nc; in nilfs_page_count_clean_buffers()
Dsufile.c654 ssize_t n, nc; in nilfs_sufile_truncate_range() local
698 nc = 0; in nilfs_sufile_truncate_range()
702 nc++; in nilfs_sufile_truncate_range()
706 if (nc > 0) { in nilfs_sufile_truncate_range()
708 ncleaned += nc; in nilfs_sufile_truncate_range()
/linux-4.1.27/sound/oss/
Daudio.c547 unsigned sr, nc, sz, bsz; in reorganize_buffers() local
550 nc = dsp_dev->d->set_channels(dev, 0); in reorganize_buffers()
558 if (sr < 1 || nc < 1 || sz < 1) in reorganize_buffers()
562 nc = 1; in reorganize_buffers()
566 sz = sr * nc * sz; in reorganize_buffers()
/linux-4.1.27/arch/sparc/kernel/
Dldc.c2013 u32 nc; member
2037 sp->cookies[sp->nc - 1].cookie_size += tlen; in fill_cookies()
2039 sp->cookies[sp->nc].cookie_addr = this_cookie; in fill_cookies()
2040 sp->cookies[sp->nc].cookie_size = tlen; in fill_cookies()
2041 sp->nc++; in fill_cookies()
2113 state.nc = 0; in ldc_map_sg()
2119 return state.nc; in ldc_map_sg()
2154 state.nc = 0; in ldc_map_single()
2156 BUG_ON(state.nc > ncookies); in ldc_map_single()
2158 return state.nc; in ldc_map_single()
/linux-4.1.27/net/core/
Dskbuff.c362 static struct page *__page_frag_refill(struct netdev_alloc_cache *nc, in __page_frag_refill() argument
373 nc->frag.size = PAGE_SIZE << (page ? order : 0); in __page_frag_refill()
379 nc->frag.page = page; in __page_frag_refill()
387 struct netdev_alloc_cache *nc = this_cpu_ptr(cache); in __alloc_page_frag() local
388 struct page *page = nc->frag.page; in __alloc_page_frag()
394 page = __page_frag_refill(nc, gfp_mask); in __alloc_page_frag()
399 size = NETDEV_FRAG_PAGE_MAX_ORDER ? nc->frag.size : PAGE_SIZE; in __alloc_page_frag()
407 nc->pagecnt_bias = size; in __alloc_page_frag()
408 nc->frag.offset = size; in __alloc_page_frag()
411 offset = nc->frag.offset - fragsz; in __alloc_page_frag()
[all …]
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunvnet.c1005 int i, nc, err, blen; in vnet_skb_map() local
1018 nc = err; in vnet_skb_map()
1024 if (nc < ncookies) { in vnet_skb_map()
1029 blen, cookies + nc, ncookies - nc, in vnet_skb_map()
1037 ldc_unmap(lp, cookies, nc); in vnet_skb_map()
1040 nc += err; in vnet_skb_map()
1042 return nc; in vnet_skb_map()
/linux-4.1.27/Documentation/networking/
Dnetconsole.txt70 'nc -u -l -p <port>' / 'nc -u -l <port>' or
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dmarvell,dove-pinctrl.txt64 pmu-nc Pin not driven by any PM function
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/
Dcom.fuc277 bra nc #chsw_load_ctx_dma
445 bra nc #cmp_c0
457 bra nc #cmp_zero
/linux-4.1.27/mm/
Dslab.c1103 struct array_cache *nc; in cpuup_canceled() local
1118 nc = per_cpu_ptr(cachep->cpu_cache, cpu); in cpuup_canceled()
1119 if (nc) { in cpuup_canceled()
1120 free_block(cachep, nc->entry, nc->avail, node, &list); in cpuup_canceled()
1121 nc->avail = 0; in cpuup_canceled()
/linux-4.1.27/tools/perf/util/
Dprobe-event.c1079 char c, nc = 0; in parse_perf_probe_point() local
1112 nc = *ptr; in parse_perf_probe_point()
1129 c = nc; in parse_perf_probe_point()
1138 nc = *ptr; in parse_perf_probe_point()
/linux-4.1.27/arch/tile/include/hv/
Dhypervisor.h2344 _HV_BIT(nc, NC) in _HV_BIT()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dgpc.fuc304 bra nc #main_not_ctx_xfer
/linux-4.1.27/tools/testing/ktest/
Dktest.pl3143 my ($tc, $nc, $gc, $bc) = @_;
3171 %{$nc} = %new_configs;
/linux-4.1.27/drivers/md/
Draid10.c3469 int nc, fc, fo; in setup_geo() local
3495 nc = layout & 255; in setup_geo()
3499 geo->near_copies = nc; in setup_geo()
3505 return nc*fc; in setup_geo()
/linux-4.1.27/arch/x86/kvm/
Dsvm.c2373 struct vmcb_control_area *nc = &nested_vmcb->control; in nested_svm_vmexit() local
2375 nc->exit_int_info = vmcb->control.event_inj; in nested_svm_vmexit()
2376 nc->exit_int_info_err = vmcb->control.event_inj_err; in nested_svm_vmexit()
/linux-4.1.27/Documentation/filesystems/
Dcoda.txt1203 44..2211.. ffssyynncc
1426 55.. TThhee mmiinniiccaacchhee aanndd ddoowwnnccaallllss