Searched refs:nc (Results 1 - 62 of 62) sorted by relevance

/linux-4.1.27/drivers/mtd/nand/
H A Dorion_nand.c28 struct nand_chip *nc = mtd->priv; orion_nand_cmd_ctrl() local
29 struct orion_nand_data *board = nc->priv; orion_nand_cmd_ctrl()
42 if (nc->options & NAND_BUSWIDTH_16) orion_nand_cmd_ctrl()
45 writeb(cmd, nc->IO_ADDR_W + offs); orion_nand_cmd_ctrl()
80 struct nand_chip *nc; orion_nand_probe() local
88 nc = devm_kzalloc(&pdev->dev, orion_nand_probe()
91 if (!nc) orion_nand_probe()
93 mtd = (struct mtd_info *)(nc + 1); orion_nand_probe()
126 mtd->priv = nc; orion_nand_probe()
129 nc->priv = board; orion_nand_probe()
130 nc->IO_ADDR_R = nc->IO_ADDR_W = io_base; orion_nand_probe()
131 nc->cmd_ctrl = orion_nand_cmd_ctrl; orion_nand_probe()
132 nc->read_buf = orion_nand_read_buf; orion_nand_probe()
133 nc->ecc.mode = NAND_ECC_SOFT; orion_nand_probe()
136 nc->chip_delay = board->chip_delay; orion_nand_probe()
143 nc->options |= NAND_BUSWIDTH_16; orion_nand_probe()
146 nc->dev_ready = board->dev_ready; orion_nand_probe()
/linux-4.1.27/arch/powerpc/sysdev/
H A Dppc4xx_ocm.c68 struct ocm_region nc; /* non-cached region */ member in struct:ocm_info
160 ocm->nc.phys = ocm->phys; ocm_init_node()
161 ocm->nc.memtotal = ocm->memtotal - ocm->cache_size; ocm_init_node()
162 ocm->nc.memfree = ocm->nc.memtotal; ocm_init_node()
164 ocm->c.phys = ocm->phys + ocm->nc.memtotal; ocm_init_node()
168 if (ocm->nc.memtotal == 0) ocm_init_node()
169 ocm->nc.phys = 0; ocm_init_node()
175 ocm->index, ocm->nc.memtotal); ocm_init_node()
181 if (ocm->nc.memtotal) { ocm_init_node()
183 ocm->nc.virt = __ioremap(ocm->nc.phys, ocm->nc.memtotal, ocm_init_node()
186 if (!ocm->nc.virt) { ocm_init_node()
190 ocm->nc.memfree = 0; ocm_init_node()
215 if (ocm->nc.virt) { ocm_init_node()
216 ocm->nc.rh = rh_create(ocm->alignment); ocm_init_node()
217 rh_attach_region(ocm->nc.rh, 0, ocm->nc.memtotal); ocm_init_node()
225 INIT_LIST_HEAD(&ocm->nc.list); ocm_init_node()
247 seq_printf(m, "MemTotal(NC) : %d Bytes\n", ocm->nc.memtotal); ocm_debugfs_show()
252 seq_printf(m, "NC.PhysAddr : 0x%llx\n", ocm->nc.phys); ocm_debugfs_show()
253 seq_printf(m, "NC.VirtAddr : 0x%p\n", ocm->nc.virt); ocm_debugfs_show()
254 seq_printf(m, "NC.MemTotal : %d Bytes\n", ocm->nc.memtotal); ocm_debugfs_show()
255 seq_printf(m, "NC.MemFree : %d Bytes\n", ocm->nc.memfree); ocm_debugfs_show()
257 list_for_each_entry_safe(blk, tmp, &ocm->nc.list, list) { ocm_debugfs_show()
327 ocm_reg = &ocm->nc; ppc4xx_ocm_alloc()
379 if (ocm_free_region(&ocm->nc, addr) || ppc4xx_ocm_free()
/linux-4.1.27/include/sound/
H A Dalc5623.h11 /* jack detect (gpio/nc/jack detect [12] */
/linux-4.1.27/net/batman-adv/
H A Dnetwork-coding.c51 * batadv_nc_start_timer - initialise the nc periodic worker
56 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, batadv_nc_start_timer()
95 * batadv_nc_tvlv_ogm_handler_v1 - process incoming nc tvlv container
120 bat_priv->nc.timestamp_fwd_flush = jiffies; batadv_nc_mesh_init()
121 bat_priv->nc.timestamp_sniffed_purge = jiffies; batadv_nc_mesh_init()
123 if (bat_priv->nc.coding_hash || bat_priv->nc.decoding_hash) batadv_nc_mesh_init()
126 bat_priv->nc.coding_hash = batadv_hash_new(128); batadv_nc_mesh_init()
127 if (!bat_priv->nc.coding_hash) batadv_nc_mesh_init()
130 batadv_hash_set_lock_class(bat_priv->nc.coding_hash, batadv_nc_mesh_init()
133 bat_priv->nc.decoding_hash = batadv_hash_new(128); batadv_nc_mesh_init()
134 if (!bat_priv->nc.decoding_hash) batadv_nc_mesh_init()
137 batadv_hash_set_lock_class(bat_priv->nc.decoding_hash, batadv_nc_mesh_init()
140 INIT_DELAYED_WORK(&bat_priv->nc.work, batadv_nc_worker); batadv_nc_mesh_init()
154 * batadv_nc_init_bat_priv - initialise the nc specific bat_priv variables
160 bat_priv->nc.min_tq = 200; batadv_nc_init_bat_priv()
161 bat_priv->nc.max_fwd_delay = 10; batadv_nc_init_bat_priv()
162 bat_priv->nc.max_buffer_time = 200; batadv_nc_init_bat_priv()
166 * batadv_nc_init_orig - initialise the nc fields of an orig_node
180 * @nc_node: the nc node to free
189 * batadv_nc_node_free_ref - decrement the nc node refcounter and possibly
191 * @nc_node: the nc node to free
200 * batadv_nc_path_free_ref - decrements the nc path refcounter and possibly
202 * @nc_path: the nc node to free
211 * batadv_nc_packet_free - frees nc packet
212 * @nc_packet: the nc packet to free
224 * batadv_nc_to_purge_nc_node - checks whether an nc node has to be purged
226 * @nc_node: the nc node to check
240 * batadv_nc_to_purge_nc_path_coding - checks whether an nc path has timed out
242 * @nc_path: the nc path to check
256 bat_priv->nc.max_fwd_delay * 10); batadv_nc_to_purge_nc_path_coding()
260 * batadv_nc_to_purge_nc_path_decoding - checks whether an nc path has timed out
262 * @nc_path: the nc path to check
276 bat_priv->nc.max_buffer_time*10); batadv_nc_to_purge_nc_path_decoding()
280 * batadv_nc_purge_orig_nc_nodes - go through list of nc nodes and purge stale
283 * @list: list of nc nodes
284 * @lock: nc node list lock
286 * not. This function takes the nc node as argument and has to return
318 * batadv_nc_purge_orig - purges all nc node data attached of the given
321 * @orig_node: orig_node with the nc node entries to be purged
323 * not. This function takes the nc node as argument and has to return
345 * have timed out nc nodes
371 * batadv_nc_purge_paths - traverse all nc paths part of the hash and remove
374 * @hash: hash table containing the nc paths to check
376 * not. This function takes the nc node as argument and has to return
443 * batadv_nc_hash_choose - compute the hash value for an nc path
495 * batadv_nc_hash_find - search for an existing nc path and return it
496 * @hash: hash table containing the nc path
533 * @nc_packet: the nc packet to send
547 * @nc_path: the nc path the packet belongs to
548 * @nc_packet: the nc packet to be checked
561 unsigned long timeout = bat_priv->nc.max_buffer_time; batadv_nc_sniffed_purge()
571 /* purge nc packet */ batadv_nc_sniffed_purge()
582 * batadv_nc_fwd_flush - Checks the timestamp of the given nc packet.
584 * @nc_path: the nc path the packet belongs to
585 * @nc_packet: the nc packet to be checked
587 * Checks whether the given nc packet has hit its forward timeout. If so, the
598 unsigned long timeout = bat_priv->nc.max_fwd_delay; batadv_nc_fwd_flush()
618 * batadv_nc_process_nc_paths - traverse given nc packet pool and free timed out
619 * nc packets
622 * @process_fn: Function called to process given nc packet. Should return true
676 bat_priv = container_of(priv_nc, struct batadv_priv, nc); batadv_nc_worker()
679 batadv_nc_purge_paths(bat_priv, bat_priv->nc.coding_hash, batadv_nc_worker()
681 batadv_nc_purge_paths(bat_priv, bat_priv->nc.decoding_hash, batadv_nc_worker()
684 timeout = bat_priv->nc.max_fwd_delay; batadv_nc_worker()
686 if (batadv_has_timed_out(bat_priv->nc.timestamp_fwd_flush, timeout)) { batadv_nc_worker()
687 batadv_nc_process_nc_paths(bat_priv, bat_priv->nc.coding_hash, batadv_nc_worker()
689 bat_priv->nc.timestamp_fwd_flush = jiffies; batadv_nc_worker()
692 if (batadv_has_timed_out(bat_priv->nc.timestamp_sniffed_purge, batadv_nc_worker()
693 bat_priv->nc.max_buffer_time)) { batadv_nc_worker()
694 batadv_nc_process_nc_paths(bat_priv, bat_priv->nc.decoding_hash, batadv_nc_worker()
696 bat_priv->nc.timestamp_sniffed_purge = jiffies; batadv_nc_worker()
707 * @orig_node: neighboring orig node which may be used as nc candidate
714 * 4) The TQ value of the OGM must be above bat_priv->nc.min_tq.
738 if (ogm_packet->tq < bat_priv->nc.min_tq) batadv_can_nc_with_orig()
745 * batadv_nc_find_nc_node - search for an existing nc node and return it
785 * batadv_nc_get_nc_node - retrieves an nc node or creates the entry if it was
850 * batadv_nc_update_nc_node - updates stored incoming and outgoing nc node structs
906 * @hash: hash table containing the nc path
907 * @src: ethernet source address - first half of the nc path search key
908 * @dst: ethernet destination address - second half of the nc path search key
999 * batadv_nc_code_packets - code a received unicast_packet with an nc packet
1220 * @in_nc_node: pointer to skb next hop's neighbor nc node
1221 * @out_nc_node: pointer to skb source's neighbor nc node
1237 struct batadv_hashtable *hash = bat_priv->nc.coding_hash; batadv_nc_path_search()
1291 * @in_nc_node: pointer to skb next hop's neighbor nc node
1293 * Returns an nc packet if a suitable coding packet was found, NULL otherwise.
1493 bat_priv->nc.coding_hash, batadv_nc_skb_forward()
1542 bat_priv->nc.decoding_hash, batadv_nc_skb_store_for_decoding()
1697 * Returns pointer to nc packet if the needed data was found or NULL otherwise.
1704 struct batadv_hashtable *hash = bat_priv->nc.decoding_hash; batadv_nc_find_decoding_packet()
1832 cancel_delayed_work_sync(&bat_priv->nc.work); batadv_nc_mesh_free()
1834 batadv_nc_purge_paths(bat_priv, bat_priv->nc.coding_hash, NULL); batadv_nc_mesh_free()
1835 batadv_hash_destroy(bat_priv->nc.coding_hash); batadv_nc_mesh_free()
1836 batadv_nc_purge_paths(bat_priv, bat_priv->nc.decoding_hash, NULL); batadv_nc_mesh_free()
1837 batadv_hash_destroy(bat_priv->nc.decoding_hash); batadv_nc_mesh_free()
1841 * batadv_nc_nodes_seq_print_text - print the nc node information
1904 * batadv_nc_init_debugfs - create nc folder and related files in debugfs
1911 nc_dir = debugfs_create_dir("nc", bat_priv->debug_dir); batadv_nc_init_debugfs()
1916 &bat_priv->nc.min_tq); batadv_nc_init_debugfs()
1921 &bat_priv->nc.max_fwd_delay); batadv_nc_init_debugfs()
1926 &bat_priv->nc.max_buffer_time); batadv_nc_init_debugfs()
H A Dtypes.h88 * @debug_dir: dentry for nc subdir in batman-adv directory in debugfs
434 * @BATADV_CNT_NC_CODE: transmitted nc-combined traffic packet counter
435 * @BATADV_CNT_NC_CODE_BYTES: transmitted nc-combined traffic bytes counter
436 * @BATADV_CNT_NC_RECODE: transmitted nc-recombined traffic packet counter
437 * @BATADV_CNT_NC_RECODE_BYTES: transmitted nc-recombined traffic bytes counter
438 * @BATADV_CNT_NC_BUFFER: counter for packets buffered for later nc decoding
439 * @BATADV_CNT_NC_DECODE: received and nc-decoded traffic packet counter
440 * @BATADV_CNT_NC_DECODE_BYTES: received and nc-decoded traffic bytes counter
443 * @BATADV_CNT_NC_SNIFFED: counter for nc-decoded packets received in promisc
663 * @debug_dir: dentry for nc subdir in batman-adv directory in debugfs
825 struct batadv_priv_nc nc; member in struct:batadv_priv
1058 * @nc_path: pointer to path this nc packet is attached to
/linux-4.1.27/include/linux/
H A Dnls.h63 unsigned char nc = t->charset2lower[c]; nls_tolower() local
65 return nc ? nc : c; nls_tolower()
70 unsigned char nc = t->charset2upper[c]; nls_toupper() local
72 return nc ? nc : c; nls_toupper()
/linux-4.1.27/drivers/platform/x86/
H A Dintel_scu_ipc.c216 int nc; pwr_reg_rdwr() local
231 for (nc = 0; nc < count; nc++, offset += 2) { pwr_reg_rdwr()
232 cbuf[offset] = addr[nc]; pwr_reg_rdwr()
233 cbuf[offset + 1] = addr[nc] >> 8; pwr_reg_rdwr()
237 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) pwr_reg_rdwr()
238 ipc_data_writel(wbuf[nc], offset); pwr_reg_rdwr()
241 for (nc = 0; nc < count; nc++, offset += 1) pwr_reg_rdwr()
242 cbuf[offset] = data[nc]; pwr_reg_rdwr()
243 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) pwr_reg_rdwr()
244 ipc_data_writel(wbuf[nc], offset); pwr_reg_rdwr()
257 for (nc = 0; nc < count; nc++) pwr_reg_rdwr()
258 data[nc] = ipc_data_readb(nc); pwr_reg_rdwr()
H A Dsony-laptop.c79 #define SONY_NC_CLASS "sony-nc"
/linux-4.1.27/tools/testing/selftests/rcutorture/bin/
H A Dkvm.sh209 nc = -1;
216 while (nc != ncpus) {
218 nc = ncpus;
225 if (nc >= cpus[i] || nc == ncpus) {
229 nc -= cpus[i];
230 if (nc <= 0)
359 nc = ncpus;
368 } else if (nc < cpus[i] && i != 0) {
372 nc = ncpus;
375 nc -= cpus[i];
/linux-4.1.27/net/netfilter/
H A Dnfnetlink.c156 const struct nfnl_callback *nc; nfnetlink_rcv_msg() local
182 nc = nfnetlink_find_client(type, ss); nfnetlink_rcv_msg()
183 if (!nc) { nfnetlink_rcv_msg()
203 if (nc->call_rcu) { nfnetlink_rcv_msg()
204 err = nc->call_rcu(net->nfnl, skb, nlh, nfnetlink_rcv_msg()
212 nfnetlink_find_client(type, ss) != nc) nfnetlink_rcv_msg()
214 else if (nc->call) nfnetlink_rcv_msg()
215 err = nc->call(net->nfnl, skb, nlh, nfnetlink_rcv_msg()
278 const struct nfnl_callback *nc; nfnetlink_rcv_batch() local
357 nc = nfnetlink_find_client(type, ss); nfnetlink_rcv_batch()
358 if (!nc) { nfnetlink_rcv_batch()
375 if (nc->call_batch) { nfnetlink_rcv_batch()
376 err = nc->call_batch(net->nfnl, skb, nlh, nfnetlink_rcv_batch()
H A Dnf_tables_api.c712 struct nft_chain *chain, *nc; nft_flush_table() local
733 list_for_each_entry_safe(chain, nc, &ctx->table->chains, list) { nft_flush_table()
/linux-4.1.27/drivers/pinctrl/mvebu/
H A Dpinctrl-dove.c377 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
394 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
412 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
431 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
448 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
465 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
482 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
499 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
514 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
529 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
544 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
563 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
581 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
599 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
616 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
633 MPP_FUNCTION(CONFIG_PMU | 0x0, "pmu-nc", NULL),
/linux-4.1.27/fs/nls/
H A Dnls_base.c58 int c0, c, nc; utf8_to_utf32() local
61 nc = 0; utf8_to_utf32()
65 nc++; utf8_to_utf32()
72 return nc; utf8_to_utf32()
74 if (inlen <= nc) utf8_to_utf32()
89 int c, nc; utf32_to_utf8() local
99 nc = 0; utf32_to_utf8()
101 nc++; utf32_to_utf8()
110 return nc; utf32_to_utf8()
/linux-4.1.27/ipc/
H A Dmqueue.c1186 struct sk_buff *nc; SYSCALL_DEFINE2() local
1196 nc = NULL; SYSCALL_DEFINE2()
1211 nc = alloc_skb(NOTIFY_COOKIE_LEN, GFP_KERNEL); SYSCALL_DEFINE2()
1212 if (!nc) { SYSCALL_DEFINE2()
1216 if (copy_from_user(nc->data, SYSCALL_DEFINE2()
1224 skb_put(nc, NOTIFY_COOKIE_LEN); SYSCALL_DEFINE2()
1241 ret = netlink_attachskb(sock, nc, &timeo, NULL); SYSCALL_DEFINE2()
1246 nc = NULL; SYSCALL_DEFINE2()
1281 info->notify_cookie = nc; SYSCALL_DEFINE2()
1283 nc = NULL; SYSCALL_DEFINE2()
1302 netlink_detachskb(sock, nc); SYSCALL_DEFINE2()
1303 else if (nc) SYSCALL_DEFINE2()
1304 dev_kfree_skb(nc); SYSCALL_DEFINE2()
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_proc.c243 struct net_conf *nc; drbd_seq_show() local
293 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); drbd_seq_show()
294 wp = nc ? nc->wire_protocol - DRBD_PROT_A + 'A' : ' '; drbd_seq_show()
H A Ddrbd_receiver.c256 struct net_conf *nc; drbd_alloc_pages() local
261 nc = rcu_dereference(peer_device->connection->net_conf); drbd_alloc_pages()
262 mxb = nc ? nc->max_buffers : 1000000; drbd_alloc_pages()
573 struct net_conf *nc; drbd_try_connect() local
579 nc = rcu_dereference(connection->net_conf); drbd_try_connect()
580 if (!nc) { drbd_try_connect()
584 sndbuf_size = nc->sndbuf_size; drbd_try_connect()
585 rcvbuf_size = nc->rcvbuf_size; drbd_try_connect()
586 connect_int = nc->connect_int; drbd_try_connect()
679 struct net_conf *nc; prepare_listen_socket() local
683 nc = rcu_dereference(connection->net_conf); prepare_listen_socket()
684 if (!nc) { prepare_listen_socket()
688 sndbuf_size = nc->sndbuf_size; prepare_listen_socket()
689 rcvbuf_size = nc->rcvbuf_size; prepare_listen_socket()
749 struct net_conf *nc; drbd_wait_for_connect() local
752 nc = rcu_dereference(connection->net_conf); drbd_wait_for_connect()
753 if (!nc) { drbd_wait_for_connect()
757 connect_int = nc->connect_int; drbd_wait_for_connect()
796 struct net_conf *nc; receive_first_packet() local
800 nc = rcu_dereference(connection->net_conf); receive_first_packet()
801 if (!nc) { receive_first_packet()
805 sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10; receive_first_packet()
847 struct net_conf *nc; connection_established() local
855 nc = rcu_dereference(connection->net_conf); connection_established()
856 timeout = (nc->sock_check_timeo ?: nc->ping_timeo) * HZ / 10; connection_established()
906 struct net_conf *nc; conn_connect() local
1020 nc = rcu_dereference(connection->net_conf); conn_connect()
1023 sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10; conn_connect()
1025 msock.socket->sk->sk_rcvtimeo = nc->ping_int*HZ; conn_connect()
1026 timeout = nc->timeout * HZ / 10; conn_connect()
1027 discard_my_data = nc->discard_my_data; conn_connect()
2274 struct net_conf *nc; receive_Data() local
2342 nc = rcu_dereference(peer_device->connection->net_conf); receive_Data()
2343 tp = nc->two_primaries; receive_Data()
2345 switch (nc->wire_protocol) { receive_Data()
3127 struct net_conf *nc; __must_hold() local
3169 nc = rcu_dereference(peer_device->connection->net_conf); __must_hold()
3171 if (hg == 100 || (hg == -100 && nc->always_asbp)) { __must_hold()
3210 rr_conflict = nc->rr_conflict; __must_hold()
3211 tentative = nc->tentative; __must_hold()
3295 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; receive_protocol() local
3326 nc = rcu_dereference(connection->net_conf); receive_protocol()
3328 if (p_proto != nc->wire_protocol) { receive_protocol()
3333 if (convert_after_sb(p_after_sb_0p) != nc->after_sb_0p) { receive_protocol()
3338 if (convert_after_sb(p_after_sb_1p) != nc->after_sb_1p) { receive_protocol()
3343 if (convert_after_sb(p_after_sb_2p) != nc->after_sb_2p) { receive_protocol()
3348 if (p_discard_my_data && nc->discard_my_data) { receive_protocol()
3353 if (p_two_primaries != nc->two_primaries) { receive_protocol()
3358 if (strcmp(integrity_alg, nc->integrity_alg)) { receive_protocol()
4906 struct net_conf *nc; drbd_do_auth() local
4912 nc = rcu_dereference(connection->net_conf); drbd_do_auth()
4913 key_len = strlen(nc->shared_secret); drbd_do_auth()
4914 memcpy(secret, nc->shared_secret, key_len); drbd_do_auth()
5506 struct net_conf *nc; drbd_asender() local
5518 nc = rcu_dereference(connection->net_conf); drbd_asender()
5519 ping_timeo = nc->ping_timeo; drbd_asender()
5520 tcp_cork = nc->tcp_cork; drbd_asender()
5521 ping_int = nc->ping_int; drbd_asender()
H A Ddrbd_req.c583 struct net_conf *nc; __req_mod() local
605 nc = rcu_dereference(connection->net_conf); __req_mod()
606 p = nc->wire_protocol; __req_mod()
718 nc = rcu_dereference(connection->net_conf); __req_mod()
719 p = nc->max_epoch_size; __req_mod()
1001 struct net_conf *nc; maybe_pull_ahead() local
1006 nc = rcu_dereference(connection->net_conf); maybe_pull_ahead()
1007 on_congestion = nc ? nc->on_congestion : OC_BLOCK; maybe_pull_ahead()
1023 if (nc->cong_fill && maybe_pull_ahead()
1024 atomic_read(&device->ap_in_flight) >= nc->cong_fill) { maybe_pull_ahead()
1029 if (device->act_log->used >= nc->cong_extents) { maybe_pull_ahead()
1040 else /*nc->on_congestion == OC_DISCONNECT */ maybe_pull_ahead()
1551 struct net_conf *nc; request_timer_fn() local
1557 nc = rcu_dereference(connection->net_conf); request_timer_fn()
1558 if (nc && device->state.conn >= C_WF_REPORT_PARAMS) request_timer_fn()
1559 ent = nc->timeout * HZ/10 * nc->ko_count; request_timer_fn()
H A Ddrbd_state.c555 struct net_conf *nc; is_valid_state() local
564 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); is_valid_state()
565 if (nc) { is_valid_state()
566 if (!nc->two_primaries && ns.role == R_PRIMARY) { is_valid_state()
606 (nc->verify_alg[0] == 0)) is_valid_state()
690 is_valid_conn_transition(enum drbd_conns oc, enum drbd_conns nc) is_valid_conn_transition() argument
693 if (oc == nc) is_valid_conn_transition()
697 if (oc == C_STANDALONE && nc == C_DISCONNECTING) is_valid_conn_transition()
701 if (oc == C_STANDALONE && nc != C_UNCONNECTED) is_valid_conn_transition()
706 if (oc < C_WF_REPORT_PARAMS && nc >= C_CONNECTED) is_valid_conn_transition()
710 if (oc >= C_TIMEOUT && oc <= C_TEAR_DOWN && nc != C_UNCONNECTED && nc != C_DISCONNECTING) is_valid_conn_transition()
714 if (oc == C_DISCONNECTING && nc != C_STANDALONE) is_valid_conn_transition()
H A Ddrbd_worker.c1809 struct net_conf *nc; drbd_start_resync() local
1813 nc = rcu_dereference(connection->net_conf); drbd_start_resync()
1814 timeo = nc->ping_int * HZ + nc->ping_timeo * HZ / 9; drbd_start_resync()
2003 struct net_conf *nc; wait_for_work() local
2017 nc = rcu_dereference(connection->net_conf); wait_for_work()
2018 uncork = nc ? nc->tcp_cork : 0; wait_for_work()
2072 nc = rcu_dereference(connection->net_conf); wait_for_work()
2073 cork = nc ? nc->tcp_cork : 0; wait_for_work()
H A Ddrbd_main.c731 struct net_conf *nc; drbd_send_sync_param() local
740 nc = rcu_dereference(peer_device->connection->net_conf); drbd_send_sync_param()
744 + strlen(nc->verify_alg) + 1 drbd_send_sync_param()
770 strcpy(p->verify_alg, nc->verify_alg); drbd_send_sync_param()
772 strcpy(p->csums_alg, nc->csums_alg); drbd_send_sync_param()
782 struct net_conf *nc; __drbd_send_protocol() local
791 nc = rcu_dereference(connection->net_conf); __drbd_send_protocol()
793 if (nc->tentative && connection->agreed_pro_version < 92) { __drbd_send_protocol()
802 size += strlen(nc->integrity_alg) + 1; __drbd_send_protocol()
804 p->protocol = cpu_to_be32(nc->wire_protocol); __drbd_send_protocol()
805 p->after_sb_0p = cpu_to_be32(nc->after_sb_0p); __drbd_send_protocol()
806 p->after_sb_1p = cpu_to_be32(nc->after_sb_1p); __drbd_send_protocol()
807 p->after_sb_2p = cpu_to_be32(nc->after_sb_2p); __drbd_send_protocol()
808 p->two_primaries = cpu_to_be32(nc->two_primaries); __drbd_send_protocol()
810 if (nc->discard_my_data) __drbd_send_protocol()
812 if (nc->tentative) __drbd_send_protocol()
817 strcpy(p->integrity_alg, nc->integrity_alg); __drbd_send_protocol()
3723 struct net_conf *nc; drbd_wait_misc() local
3728 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); drbd_wait_misc()
3729 if (!nc) { drbd_wait_misc()
3733 timeout = nc->ko_count ? nc->timeout * HZ / 10 * nc->ko_count : MAX_SCHEDULE_TIMEOUT; drbd_wait_misc()
H A Ddrbd_nl.c569 struct net_conf *nc; drbd_set_role() local
637 nc = rcu_dereference(connection->net_conf); drbd_set_role()
638 timeo = nc ? (nc->ping_timeo + 1) * HZ / 10 : 1; drbd_set_role()
672 nc = connection->net_conf; drbd_set_role()
673 if (nc) drbd_set_role()
674 nc->discard_my_data = 0; /* without copy; single bit op is atomic */ drbd_set_role()
1470 struct net_conf *nc; drbd_adm_attach() local
1549 nc = rcu_dereference(connection->net_conf); drbd_adm_attach()
1550 if (nc) { drbd_adm_attach()
1551 if (new_disk_conf->fencing == FP_STONITH && nc->wire_protocol == DRBD_PROT_A) { drbd_adm_attach()
2965 struct net_conf *nc; nla_put_status_info() local
2967 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); nla_put_status_info()
2968 if (nc) nla_put_status_info()
2969 err = net_conf_to_skb(skb, nc, exclude_sensitive); nla_put_status_info()
3152 struct net_conf *nc; get_one_status() local
3154 nc = rcu_dereference(connection->net_conf); get_one_status()
3155 if (nc && net_conf_to_skb(skb, nc, 1) != 0) get_one_status()
H A Ddrbd_int.h2138 struct net_conf *nc; drbd_get_max_buffers() local
2142 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); drbd_get_max_buffers()
2143 mxb = nc ? nc->max_buffers : 1000000; /* arbitrary limit on open requests */ drbd_get_max_buffers()
/linux-4.1.27/fs/fat/
H A Dnamei_vfat.c502 unsigned char nc; xlate_to_uni() local
526 nc = ip[k]; xlate_to_uni()
528 if (nc >= '0' && nc <= '9') { xlate_to_uni()
529 ec |= nc - '0'; xlate_to_uni()
532 if (nc >= 'a' && nc <= 'f') { xlate_to_uni()
533 ec |= nc - ('a' - 10); xlate_to_uni()
536 if (nc >= 'A' && nc <= 'F') { xlate_to_uni()
537 ec |= nc - ('A' - 10); xlate_to_uni()
H A Ddir.c217 unsigned char nc = t->charset2lower[*c]; fat_short2lower_uni() local
219 if (!nc) fat_short2lower_uni()
220 nc = *c; fat_short2lower_uni()
222 charlen = t->char2uni(&nc, 1, uni); fat_short2lower_uni()
/linux-4.1.27/sound/oss/
H A Daudio.c547 unsigned sr, nc, sz, bsz; reorganize_buffers() local
550 nc = dsp_dev->d->set_channels(dev, 0); reorganize_buffers()
558 if (sr < 1 || nc < 1 || sz < 1) reorganize_buffers()
560 /* printk(KERN_DEBUG "Warning: Invalid PCM parameters[%d] sr=%d, nc=%d, sz=%d\n", dev, sr, nc, sz);*/ reorganize_buffers()
562 nc = 1; reorganize_buffers()
566 sz = sr * nc * sz; reorganize_buffers()
/linux-4.1.27/arch/sh/boards/
H A Dboard-magicpanelr2.c125 /* F7 (x); F6 DA1(VLCD); F5 DA0(nc); F4 AN3; setup_port_multiplexing()
126 * F3 AN2(MID_AD); F2 AN1(EARTH_AD); F1 AN0(TEMP); F0 GPI+(nc); setup_port_multiplexing()
157 * M1 CS5B(CAN3_CS); M0 GPI+(nc); setup_port_multiplexing()
/linux-4.1.27/drivers/cpuidle/
H A Dcpuidle-cps.c82 .name = "nc-wait",
/linux-4.1.27/drivers/spi/
H A Dspi.c1162 of_register_spi_device(struct spi_master *master, struct device_node *nc) of_register_spi_device() argument
1172 nc->full_name); of_register_spi_device()
1178 rc = of_modalias_node(nc, spi->modalias, of_register_spi_device()
1182 nc->full_name); of_register_spi_device()
1187 rc = of_property_read_u32(nc, "reg", &value); of_register_spi_device()
1190 nc->full_name, rc); of_register_spi_device()
1196 if (of_find_property(nc, "spi-cpha", NULL)) of_register_spi_device()
1198 if (of_find_property(nc, "spi-cpol", NULL)) of_register_spi_device()
1200 if (of_find_property(nc, "spi-cs-high", NULL)) of_register_spi_device()
1202 if (of_find_property(nc, "spi-3wire", NULL)) of_register_spi_device()
1204 if (of_find_property(nc, "spi-lsb-first", NULL)) of_register_spi_device()
1208 if (!of_property_read_u32(nc, "spi-tx-bus-width", &value)) { of_register_spi_device()
1226 if (!of_property_read_u32(nc, "spi-rx-bus-width", &value)) { of_register_spi_device()
1245 rc = of_property_read_u32(nc, "spi-max-frequency", &value); of_register_spi_device()
1248 nc->full_name, rc); of_register_spi_device()
1254 spi->irq = irq_of_parse_and_map(nc, 0); of_register_spi_device()
1257 of_node_get(nc); of_register_spi_device()
1258 spi->dev.of_node = nc; of_register_spi_device()
1264 nc->full_name); of_register_spi_device()
1285 struct device_node *nc; of_register_spi_devices() local
1290 for_each_available_child_of_node(master->dev.of_node, nc) { of_register_spi_devices()
1291 spi = of_register_spi_device(master, nc); of_register_spi_devices()
1294 nc->full_name); of_register_spi_devices()
H A Dspi-fsl-espi.c647 struct device_node *nc; fsl_espi_probe() local
698 for_each_available_child_of_node(master->dev.of_node, nc) { fsl_espi_probe()
700 prop = of_get_property(nc, "reg", &len); fsl_espi_probe()
709 prop = of_get_property(nc, "fsl,csbef", &len); fsl_espi_probe()
715 prop = of_get_property(nc, "fsl,csaft", &len); fsl_espi_probe()
/linux-4.1.27/arch/ia64/include/asm/
H A Dspinlock.h52 asm volatile ("ld4.c.nc %0=[%1]" : "=r"(serve) : "r"(p) : "memory"); __ticket_spin_lock()
84 asm volatile ("ld4.c.nc %0=[%1]" : "=r"(ticket) : "r"(p) : "memory"); __ticket_spin_unlock_wait()
/linux-4.1.27/fs/ncpfs/
H A Dncplib_kernel.c1141 unsigned char nc; ncp__io2vol() local
1143 nc = iname[k] - '0'; ncp__io2vol()
1144 if (nc >= 10) { ncp__io2vol()
1145 nc -= 'A' - '0' - 10; ncp__io2vol()
1146 if ((nc < 10) || (nc > 15)) { ncp__io2vol()
1150 ec = (ec << 4) | nc; ncp__io2vol()
/linux-4.1.27/drivers/input/
H A Dinput-mt.c329 static void find_reduced_matrix(int *w, int nr, int nc, int nrc, int mu) find_reduced_matrix() argument
335 adjust_dual(w + i, nr, w + i + nrc, nr <= nc, mu); find_reduced_matrix()
338 sum += adjust_dual(w + i, 1, w + i + nr, nc <= nr, mu); find_reduced_matrix()
/linux-4.1.27/fs/nilfs2/
H A Dpage.c448 unsigned nc = 0; nilfs_page_count_clean_buffers() local
455 nc++; nilfs_page_count_clean_buffers()
457 return nc; nilfs_page_count_clean_buffers()
H A Dsufile.c654 ssize_t n, nc; nilfs_sufile_truncate_range() local
698 nc = 0; nilfs_sufile_truncate_range()
702 nc++; nilfs_sufile_truncate_range()
706 if (nc > 0) { nilfs_sufile_truncate_range()
708 ncleaned += nc; nilfs_sufile_truncate_range()
/linux-4.1.27/arch/tile/include/asm/
H A Dhomecache.h36 * widely than would otherwise be possible? This means we have "nc" set.
/linux-4.1.27/drivers/tty/
H A Dn_gsm.c2774 static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc) gsm_create_network() argument
2788 if (nc->protocol != htons(ETH_P_IP)) gsm_create_network()
2791 if (nc->adaption != 3 && nc->adaption != 4) gsm_create_network()
2797 if (nc->if_name[0] != '\0') gsm_create_network()
2798 netname = nc->if_name; gsm_create_network()
2809 strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */ gsm_create_network()
2814 dlci->adaption = nc->adaption; gsm_create_network()
3091 struct gsm_netconfig nc; gsmtty_ioctl() local
3098 if (copy_from_user(&nc, (void __user *)arg, sizeof(nc))) gsmtty_ioctl()
3100 nc.if_name[IFNAMSIZ-1] = '\0'; gsmtty_ioctl()
3103 index = gsm_create_network(dlci, &nc); gsmtty_ioctl()
3105 if (copy_to_user((void __user *)arg, &nc, sizeof(nc))) gsmtty_ioctl()
/linux-4.1.27/arch/sparc/kernel/
H A Dldc.c2013 u32 nc; member in struct:cookie_state
2037 sp->cookies[sp->nc - 1].cookie_size += tlen; fill_cookies()
2039 sp->cookies[sp->nc].cookie_addr = this_cookie; fill_cookies()
2040 sp->cookies[sp->nc].cookie_size = tlen; fill_cookies()
2041 sp->nc++; fill_cookies()
2113 state.nc = 0; ldc_map_sg()
2119 return state.nc; ldc_map_sg()
2154 state.nc = 0; ldc_map_single()
2156 BUG_ON(state.nc > ncookies); ldc_map_single()
2158 return state.nc; ldc_map_single()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_intr.c502 unsigned long nc; handle_frequent_errors() local
511 nc = jiffies; handle_frequent_errors()
513 if (time_before(nc, nextmsg_time)) { handle_frequent_errors()
516 nextmsg_time = nc + HZ * 3; handle_frequent_errors()
524 else if (!nmsgs++ || time_after(nc, nextmsg_time)) handle_frequent_errors()
525 nextmsg_time = nc + HZ / 2; handle_frequent_errors()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dsunvnet.c1005 int i, nc, err, blen; vnet_skb_map() local
1018 nc = err; vnet_skb_map()
1024 if (nc < ncookies) { vnet_skb_map()
1029 blen, cookies + nc, ncookies - nc, vnet_skb_map()
1037 ldc_unmap(lp, cookies, nc); vnet_skb_map()
1040 nc += err; vnet_skb_map()
1042 return nc; vnet_skb_map()
/linux-4.1.27/sound/pci/ca0106/
H A Dca_midi.c10 * emu10k1x: Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Dca0106_proc.c46 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Dca0106_mixer.c46 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Dca0106.h55 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Dca0106_main.c121 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
/linux-4.1.27/net/core/
H A Dskbuff.c362 static struct page *__page_frag_refill(struct netdev_alloc_cache *nc, __page_frag_refill() argument
373 nc->frag.size = PAGE_SIZE << (page ? order : 0); __page_frag_refill()
379 nc->frag.page = page; __page_frag_refill()
387 struct netdev_alloc_cache *nc = this_cpu_ptr(cache); __alloc_page_frag() local
388 struct page *page = nc->frag.page; __alloc_page_frag()
394 page = __page_frag_refill(nc, gfp_mask); __alloc_page_frag()
399 size = NETDEV_FRAG_PAGE_MAX_ORDER ? nc->frag.size : PAGE_SIZE; __alloc_page_frag()
407 nc->pagecnt_bias = size; __alloc_page_frag()
408 nc->frag.offset = size; __alloc_page_frag()
411 offset = nc->frag.offset - fragsz; __alloc_page_frag()
413 if (!atomic_sub_and_test(nc->pagecnt_bias, &page->_count)) __alloc_page_frag()
417 size = NETDEV_FRAG_PAGE_MAX_ORDER ? nc->frag.size : PAGE_SIZE; __alloc_page_frag()
423 nc->pagecnt_bias = size; __alloc_page_frag()
427 nc->pagecnt_bias--; __alloc_page_frag()
428 nc->frag.offset = offset; __alloc_page_frag()
/linux-4.1.27/arch/ia64/mm/
H A Dtlb.c124 asm volatile ("ld8.c.nc %0=[%1]" : "=r"(serve) : "r"(&ss->serve) : "memory"); down_spin()
/linux-4.1.27/sound/pci/emu10k1/
H A Dp16v.h63 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Dp16v.c73 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
H A Demu10k1x.c2 * Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
45 MODULE_AUTHOR("Francisco Moraes <fmoraes@nc.rr.com>");
/linux-4.1.27/tools/perf/util/
H A Dprobe-event.c1079 char c, nc = 0; parse_perf_probe_point() local
1112 nc = *ptr; parse_perf_probe_point()
1129 c = nc; parse_perf_probe_point()
1138 nc = *ptr; parse_perf_probe_point()
/linux-4.1.27/arch/powerpc/perf/
H A Dpower8-pmu.c201 * nc - number of counters -*
/linux-4.1.27/mm/
H A Dslab.c1103 struct array_cache *nc; cpuup_canceled() local
1118 nc = per_cpu_ptr(cachep->cpu_cache, cpu); cpuup_canceled()
1119 if (nc) { cpuup_canceled()
1120 free_block(cachep, nc->entry, nc->avail, node, &list); cpuup_canceled()
1121 nc->avail = 0; cpuup_canceled()
/linux-4.1.27/tools/testing/ktest/
H A Dktest.pl392 CONSOLE = nc -d localhost 3001
3143 my ($tc, $nc, $gc, $bc) = @_;
3171 %{$nc} = %new_configs;
/linux-4.1.27/drivers/md/
H A Draid10.c3469 int nc, fc, fo; setup_geo() local
3495 nc = layout & 255; setup_geo()
3499 geo->near_copies = nc; setup_geo()
3505 return nc*fc; setup_geo()
/linux-4.1.27/sound/soc/codecs/
H A Dtas5086.c560 "SDIN3-L", "SDIN3-R", "Ground (0)", "nc"
/linux-4.1.27/drivers/media/dvb-frontends/
H A Ddib0090.c1844 dib0090_write_reg(state, 0x05, 0x9bcf); /* attenuator_ibias_tri = 2 ; input_stage_ibias_tr = 1 ; nc = 11 ; ext_gm_trim = 1 ; obuf_ibias_trim = 4 ; filter13_gm2_ibias_t = 15 */ dib0090_set_bandwidth()
1847 dib0090_write_reg(state, 0x05, 0xabcd); /* = 0xabcd : attenuator_ibias_tri = 2 ; input_stage_ibias_tr = 2 ; nc = 11 ; ext_gm_trim = 1 ; obuf_ibias_trim = 4 ; filter13_gm2_ibias_t = 13 */ dib0090_set_bandwidth()
/linux-4.1.27/arch/ia64/kernel/
H A Dunaligned.c794 * ldX.c.nc (check load no clear): emulate_load_int()
/linux-4.1.27/arch/x86/kvm/
H A Dsvm.c2373 struct vmcb_control_area *nc = &nested_vmcb->control; nested_svm_vmexit() local
2375 nc->exit_int_info = vmcb->control.event_inj; nested_svm_vmexit()
2376 nc->exit_int_info_err = vmcb->control.event_inj_err; nested_svm_vmexit()
/linux-4.1.27/drivers/hwmon/
H A Dabituguru.c45 /* max nr of sensors in bank1, a bank1 sensor can be in, temp or nc */
/linux-4.1.27/arch/s390/kernel/
H A Ddis.c689 { "nc", 0xd4, INSTR_SS_L0RDRD },
/linux-4.1.27/arch/tile/include/hv/
H A Dhypervisor.h2344 _HV_BIT(nc, NC)
/linux-4.1.27/scripts/
H A Dcheckpatch.pl4722 # print("line: <$line>\nprevline: <$prevline>\ns: <$s>\nc: <$c>\n\n\n");

Completed in 1954 milliseconds