Home
last modified time | relevance | path

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

/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 …]
/drivers/platform/x86/
Dintel_scu_ipc.c217 int nc; in pwr_reg_rdwr() local
232 for (nc = 0; nc < count; nc++, offset += 2) { in pwr_reg_rdwr()
233 cbuf[offset] = addr[nc]; in pwr_reg_rdwr()
234 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr()
238 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
239 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr()
242 for (nc = 0; nc < count; nc++, offset += 1) in pwr_reg_rdwr()
243 cbuf[offset] = data[nc]; in pwr_reg_rdwr()
244 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
245 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr()
[all …]
/drivers/leds/
Dleds-bcm6328.c190 static int bcm6328_hwled(struct device *dev, struct device_node *nc, u32 reg, in bcm6328_hwled() argument
206 cnt = of_property_count_elems_of_size(nc, "brcm,link-signal-sources", in bcm6328_hwled()
217 of_property_read_u32_index(nc, "brcm,link-signal-sources", i, in bcm6328_hwled()
232 cnt = of_property_count_elems_of_size(nc, in bcm6328_hwled()
244 of_property_read_u32_index(nc, "brcm,activity-signal-sources", in bcm6328_hwled()
262 static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg, in bcm6328_led() argument
281 if (of_property_read_bool(nc, "active-low")) in bcm6328_led()
284 led->cdev.name = of_get_property(nc, "label", NULL) ? : nc->name; in bcm6328_led()
285 led->cdev.default_trigger = of_get_property(nc, in bcm6328_led()
290 if (!of_property_read_string(nc, "default-state", &state)) { in bcm6328_led()
Dleds-bcm6358.c98 static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, in bcm6358_led() argument
114 if (of_property_read_bool(nc, "active-low")) in bcm6358_led()
117 led->cdev.name = of_get_property(nc, "label", NULL) ? : nc->name; in bcm6358_led()
118 led->cdev.default_trigger = of_get_property(nc, in bcm6358_led()
123 if (!of_property_read_string(nc, "default-state", &state)) { in bcm6358_led()
/drivers/block/drbd/
Ddrbd_req.c584 struct net_conf *nc; in __req_mod() local
606 nc = rcu_dereference(connection->net_conf); in __req_mod()
607 p = nc->wire_protocol; in __req_mod()
719 nc = rcu_dereference(connection->net_conf); in __req_mod()
720 p = nc->max_epoch_size; in __req_mod()
1002 struct net_conf *nc; in maybe_pull_ahead() local
1007 nc = rcu_dereference(connection->net_conf); in maybe_pull_ahead()
1008 on_congestion = nc ? nc->on_congestion : OC_BLOCK; in maybe_pull_ahead()
1024 if (nc->cong_fill && in maybe_pull_ahead()
1025 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()
574 struct net_conf *nc; in drbd_try_connect() local
580 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
581 if (!nc) { in drbd_try_connect()
585 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
586 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
587 connect_int = nc->connect_int; in drbd_try_connect()
680 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.c733 struct net_conf *nc; in drbd_send_sync_param() local
742 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param()
746 + strlen(nc->verify_alg) + 1 in drbd_send_sync_param()
772 strcpy(p->verify_alg, nc->verify_alg); in drbd_send_sync_param()
774 strcpy(p->csums_alg, nc->csums_alg); in drbd_send_sync_param()
784 struct net_conf *nc; in __drbd_send_protocol() local
793 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol()
795 if (nc->tentative && connection->agreed_pro_version < 92) { in __drbd_send_protocol()
803 size += strlen(nc->integrity_alg) + 1; in __drbd_send_protocol()
805 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.c1787 struct net_conf *nc; in drbd_start_resync() local
1791 nc = rcu_dereference(connection->net_conf); in drbd_start_resync()
1792 timeo = nc->ping_int * HZ + nc->ping_timeo * HZ / 9; in drbd_start_resync()
1981 struct net_conf *nc; in wait_for_work() local
1995 nc = rcu_dereference(connection->net_conf); in wait_for_work()
1996 uncork = nc ? nc->tcp_cork : 0; in wait_for_work()
2050 nc = rcu_dereference(connection->net_conf); in wait_for_work()
2051 cork = nc ? nc->tcp_cork : 0; in wait_for_work()
Ddrbd_nl.c569 struct net_conf *nc; in drbd_set_role() local
639 nc = rcu_dereference(connection->net_conf); in drbd_set_role()
640 timeo = nc ? (nc->ping_timeo + 1) * HZ / 10 : 1; in drbd_set_role()
673 nc = connection->net_conf; in drbd_set_role()
674 if (nc) in drbd_set_role()
675 nc->discard_my_data = 0; /* without copy; single bit op is atomic */ in drbd_set_role()
1471 struct net_conf *nc; in drbd_adm_attach() local
1550 nc = rcu_dereference(connection->net_conf); in drbd_adm_attach()
1551 if (nc) { in drbd_adm_attach()
1552 if (new_disk_conf->fencing == FP_STONITH && nc->wire_protocol == DRBD_PROT_A) { in drbd_adm_attach()
[all …]
Ddrbd_int.h2139 struct net_conf *nc; in drbd_get_max_buffers() local
2143 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
2144 mxb = nc ? nc->max_buffers : 1000000; /* arbitrary limit on open requests */ in drbd_get_max_buffers()
/drivers/spi/
Dspi.c1445 of_register_spi_device(struct spi_master *master, struct device_node *nc) in of_register_spi_device() argument
1455 nc->full_name); in of_register_spi_device()
1461 rc = of_modalias_node(nc, spi->modalias, in of_register_spi_device()
1465 nc->full_name); in of_register_spi_device()
1470 rc = of_property_read_u32(nc, "reg", &value); in of_register_spi_device()
1473 nc->full_name, rc); in of_register_spi_device()
1479 if (of_find_property(nc, "spi-cpha", NULL)) in of_register_spi_device()
1481 if (of_find_property(nc, "spi-cpol", NULL)) in of_register_spi_device()
1483 if (of_find_property(nc, "spi-cs-high", NULL)) in of_register_spi_device()
1485 if (of_find_property(nc, "spi-3wire", NULL)) in of_register_spi_device()
[all …]
Dspi-fsl-espi.c653 struct device_node *nc; in fsl_espi_probe() local
702 for_each_available_child_of_node(master->dev.of_node, nc) { in fsl_espi_probe()
704 prop = of_get_property(nc, "reg", &len); in fsl_espi_probe()
713 prop = of_get_property(nc, "fsl,csbef", &len); in fsl_espi_probe()
719 prop = of_get_property(nc, "fsl,csaft", &len); in fsl_espi_probe()
/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 …]
/drivers/tty/
Dn_gsm.c2800 static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc) in gsm_create_network() argument
2814 if (nc->protocol != htons(ETH_P_IP)) in gsm_create_network()
2817 if (nc->adaption != 3 && nc->adaption != 4) in gsm_create_network()
2823 if (nc->if_name[0] != '\0') in gsm_create_network()
2824 netname = nc->if_name; in gsm_create_network()
2835 strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */ in gsm_create_network()
2840 dlci->adaption = nc->adaption; in gsm_create_network()
3128 struct gsm_netconfig nc; in gsmtty_ioctl() local
3135 if (copy_from_user(&nc, (void __user *)arg, sizeof(nc))) in gsmtty_ioctl()
3137 nc.if_name[IFNAMSIZ-1] = '\0'; in gsmtty_ioctl()
[all …]
/drivers/staging/rdma/ipath/
Dipath_intr.c501 unsigned long nc; in handle_frequent_errors() local
510 nc = jiffies; in handle_frequent_errors()
512 if (time_before(nc, nextmsg_time)) { in handle_frequent_errors()
515 nextmsg_time = nc + HZ * 3; in handle_frequent_errors()
521 } else if (!nmsgs++ || time_after(nc, nextmsg_time)) { in handle_frequent_errors()
522 nextmsg_time = nc + HZ / 2; in handle_frequent_errors()
/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()
/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()
/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
/drivers/md/
Draid10.c3426 int nc, fc, fo; in setup_geo() local
3452 nc = layout & 255; in setup_geo()
3456 geo->near_copies = nc; in setup_geo()
3470 geo->far_set_size = fc * nc; in setup_geo()
3477 return nc*fc; in setup_geo()
/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dgpc.fuc306 bra nc #main_not_ctx_xfer