Home
last modified time | relevance | path

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

12345

/linux-6.1.9/drivers/mtd/nand/raw/atmel/
Dnand-controller.c199 int (*remove)(struct atmel_nand_controller *nc);
200 void (*nand_init)(struct atmel_nand_controller *nc,
288 struct atmel_hsmc_nand_controller *nc = data; in atmel_nfc_interrupt() local
292 regmap_read(nc->base.smc, ATMEL_HSMC_NFC_SR, &sr); in atmel_nfc_interrupt()
294 rcvd = sr & (nc->op.wait | ATMEL_HSMC_NFC_SR_ERRORS); in atmel_nfc_interrupt()
295 done = atmel_nfc_op_done(&nc->op, sr); in atmel_nfc_interrupt()
298 regmap_write(nc->base.smc, ATMEL_HSMC_NFC_IDR, rcvd); in atmel_nfc_interrupt()
301 complete(&nc->complete); in atmel_nfc_interrupt()
306 static int atmel_nfc_wait(struct atmel_hsmc_nand_controller *nc, bool poll, in atmel_nfc_wait() argument
317 ret = regmap_read_poll_timeout(nc->base.smc, in atmel_nfc_wait()
[all …]
/linux-6.1.9/net/ncsi/
Dncsi-aen.c49 struct ncsi_channel *nc, *tmp; in ncsi_aen_handler_lsc() local
60 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_lsc()
61 if (!nc) in ncsi_aen_handler_lsc()
67 spin_lock_irqsave(&nc->lock, flags); in ncsi_aen_handler_lsc()
68 ncm = &nc->modes[NCSI_MODE_LINK]; in ncsi_aen_handler_lsc()
78 nc->id, data & 0x1 ? "up" : "down"); in ncsi_aen_handler_lsc()
80 chained = !list_empty(&nc->link); in ncsi_aen_handler_lsc()
81 state = nc->state; in ncsi_aen_handler_lsc()
82 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_aen_handler_lsc()
87 nc->id); in ncsi_aen_handler_lsc()
[all …]
Dncsi-manage.c37 struct ncsi_channel *nc; in ncsi_channel_is_last() local
40 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_channel_is_last()
41 if (nc == channel) in ncsi_channel_is_last()
43 if (nc->state == NCSI_CHANNEL_ACTIVE && in ncsi_channel_is_last()
44 ncsi_channel_has_link(nc)) in ncsi_channel_is_last()
55 struct ncsi_channel *nc; in ncsi_report_link() local
66 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_report_link()
67 spin_lock_irqsave(&nc->lock, flags); in ncsi_report_link()
69 if (!list_empty(&nc->link) || in ncsi_report_link()
70 nc->state != NCSI_CHANNEL_ACTIVE) { in ncsi_report_link()
[all …]
Dncsi-rsp.c81 struct ncsi_channel *nc; in ncsi_rsp_handler_cis() local
85 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, &np, &nc); in ncsi_rsp_handler_cis()
86 if (!nc) { in ncsi_rsp_handler_cis()
91 nc = ncsi_add_channel(np, id); in ncsi_rsp_handler_cis()
94 return nc ? 0 : -ENODEV; in ncsi_rsp_handler_cis()
128 struct ncsi_channel *nc; in ncsi_rsp_handler_dp() local
139 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_rsp_handler_dp()
140 spin_lock_irqsave(&nc->lock, flags); in ncsi_rsp_handler_dp()
141 nc->state = NCSI_CHANNEL_INACTIVE; in ncsi_rsp_handler_dp()
142 spin_unlock_irqrestore(&nc->lock, flags); in ncsi_rsp_handler_dp()
[all …]
Dncsi-netlink.c59 struct ncsi_channel *nc) in ncsi_write_channel_info() argument
66 nla_put_u32(skb, NCSI_CHANNEL_ATTR_ID, nc->id); in ncsi_write_channel_info()
67 m = &nc->modes[NCSI_MODE_LINK]; in ncsi_write_channel_info()
69 if (nc->state == NCSI_CHANNEL_ACTIVE) in ncsi_write_channel_info()
71 if (nc == nc->package->preferred_channel) in ncsi_write_channel_info()
74 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MAJOR, nc->version.version); in ncsi_write_channel_info()
75 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MINOR, nc->version.alpha2); in ncsi_write_channel_info()
76 nla_put_string(skb, NCSI_CHANNEL_ATTR_VERSION_STR, nc->version.fw_name); in ncsi_write_channel_info()
81 ncf = &nc->vlan_filter; in ncsi_write_channel_info()
99 struct ncsi_channel *nc; in ncsi_write_package_info() local
[all …]
Dncsi-netlink.h15 struct ncsi_channel *nc);
18 struct ncsi_channel *nc);
Dinternal.h371 #define NCSI_FOR_EACH_CHANNEL(np, nc) \ argument
372 list_for_each_entry_rcu(nc, &np->channels, node)
376 void ncsi_start_channel_monitor(struct ncsi_channel *nc);
377 void ncsi_stop_channel_monitor(struct ncsi_channel *nc);
390 struct ncsi_channel **nc);
/linux-6.1.9/drivers/mtd/nand/raw/
Dorion_nand.c30 static void orion_nand_cmd_ctrl(struct nand_chip *nc, int cmd, in orion_nand_cmd_ctrl() argument
33 struct orion_nand_data *board = nand_get_controller_data(nc); in orion_nand_cmd_ctrl()
46 if (nc->options & NAND_BUSWIDTH_16) in orion_nand_cmd_ctrl()
49 writeb(cmd, nc->legacy.IO_ADDR_W + offs); in orion_nand_cmd_ctrl()
103 struct nand_chip *nc; in orion_nand_probe() local
115 nc = &info->chip; in orion_nand_probe()
116 mtd = nand_to_mtd(nc); in orion_nand_probe()
120 nc->controller = &info->controller; in orion_nand_probe()
155 nand_set_controller_data(nc, board); in orion_nand_probe()
156 nand_set_flash_node(nc, pdev->dev.of_node); in orion_nand_probe()
[all …]
/linux-6.1.9/tools/perf/util/
Dnamespaces.c246 struct nscookie *nc) in nsinfo__mountns_enter() argument
253 if (nc == NULL) in nsinfo__mountns_enter()
256 nc->oldns = -1; in nsinfo__mountns_enter()
257 nc->newns = -1; in nsinfo__mountns_enter()
280 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()
281 nc->oldns = oldns; in nsinfo__mountns_enter()
282 nc->newns = newns; in nsinfo__mountns_enter()
293 void nsinfo__mountns_exit(struct nscookie *nc) in nsinfo__mountns_exit() argument
295 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()
298 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
[all …]
Dnamespaces.h62 void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc);
63 void nsinfo__mountns_exit(struct nscookie *nc);
/linux-6.1.9/drivers/platform/x86/
Dintel_scu_ipc.c274 int nc; in pwr_reg_rdwr() local
290 for (nc = 0; nc < count; nc++, offset += 2) { in pwr_reg_rdwr()
291 cbuf[offset] = addr[nc]; in pwr_reg_rdwr()
292 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr()
296 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
297 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr()
300 for (nc = 0; nc < count; nc++, offset += 1) in pwr_reg_rdwr()
301 cbuf[offset] = data[nc]; in pwr_reg_rdwr()
302 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr()
303 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_router.c658 struct prestera_kern_neigh_cache *nc, in __prestera_k_arb_fib_nh_offload_set() argument
667 if (!nc) { in __prestera_k_arb_fib_nh_offload_set()
672 if (prestera_util_nhc_eq_n_cache_key(sw, nhc, &nc->key)) { in __prestera_k_arb_fib_nh_offload_set()
681 struct prestera_kern_neigh_cache *nc, in __prestera_k_arb_n_offload_set() argument
686 n = neigh_lookup(&arp_tbl, &nc->key.addr.u.ipv4, in __prestera_k_arb_n_offload_set()
687 nc->key.dev); in __prestera_k_arb_n_offload_set()
775 struct prestera_kern_neigh_cache *nc) in __prestera_k_arb_nc_kern_fib_fetch() argument
777 if (prestera_util_kern_n_is_reachable(l3mdev_fib_table(nc->key.dev), in __prestera_k_arb_nc_kern_fib_fetch()
778 &nc->key.addr, nc->key.dev)) in __prestera_k_arb_nc_kern_fib_fetch()
779 nc->reachable = true; in __prestera_k_arb_nc_kern_fib_fetch()
[all …]
/linux-6.1.9/net/batman-adv/
Dnetwork-coding.c72 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer()
137 bat_priv->nc.timestamp_fwd_flush = jiffies; in batadv_nc_mesh_init()
138 bat_priv->nc.timestamp_sniffed_purge = jiffies; in batadv_nc_mesh_init()
140 if (bat_priv->nc.coding_hash || bat_priv->nc.decoding_hash) in batadv_nc_mesh_init()
143 bat_priv->nc.coding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
144 if (!bat_priv->nc.coding_hash) in batadv_nc_mesh_init()
147 batadv_hash_set_lock_class(bat_priv->nc.coding_hash, in batadv_nc_mesh_init()
150 bat_priv->nc.decoding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
151 if (!bat_priv->nc.decoding_hash) { in batadv_nc_mesh_init()
152 batadv_hash_destroy(bat_priv->nc.coding_hash); in batadv_nc_mesh_init()
[all …]
/linux-6.1.9/include/linux/
Dnls.h64 unsigned char nc = t->charset2lower[c]; in nls_tolower() local
66 return nc ? nc : c; in nls_tolower()
71 unsigned char nc = t->charset2upper[c]; in nls_toupper() local
73 return nc ? nc : c; in nls_toupper()
/linux-6.1.9/Documentation/driver-api/media/drivers/
Dsaa7134-devel.rst42 - nc MDT2005 PA3 pin 2
45 - nc MDT2005 PA0 pin 17 strap low
53 - GP15 nc
54 - GP14 nc
55 - GP13 nc
61 - GP07.00 nc
/linux-6.1.9/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-6.1.9/drivers/bus/
Dmoxtet.c204 of_register_moxtet_device(struct moxtet *moxtet, struct device_node *nc) in of_register_moxtet_device() argument
213 "Moxtet device alloc error for %pOF\n", nc); in of_register_moxtet_device()
217 ret = of_property_read_u32(nc, "reg", &val); in of_register_moxtet_device()
220 nc, ret); in of_register_moxtet_device()
228 nc, dev->idx); in of_register_moxtet_device()
236 dev_err(moxtet->dev, "%pOF Moxtet address 0x%x is empty\n", nc, in of_register_moxtet_device()
242 of_node_get(nc); in of_register_moxtet_device()
243 dev->dev.of_node = nc; in of_register_moxtet_device()
248 "Moxtet device register error for %pOF\n", nc); in of_register_moxtet_device()
249 of_node_put(nc); in of_register_moxtet_device()
[all …]
/linux-6.1.9/drivers/leds/
Dleds-bcm6328.c255 static int bcm6328_hwled(struct device *dev, struct device_node *nc, u32 reg, in bcm6328_hwled() argument
271 cnt = of_property_count_elems_of_size(nc, "brcm,link-signal-sources", in bcm6328_hwled()
282 of_property_read_u32_index(nc, "brcm,link-signal-sources", i, in bcm6328_hwled()
297 cnt = of_property_count_elems_of_size(nc, in bcm6328_hwled()
309 of_property_read_u32_index(nc, "brcm,activity-signal-sources", in bcm6328_hwled()
327 static int bcm6328_led(struct device *dev, struct device_node *nc, u32 reg, in bcm6328_led() argument
346 if (of_property_read_bool(nc, "active-low")) in bcm6328_led()
349 if (!of_property_read_string(nc, "default-state", &state)) { in bcm6328_led()
381 init_data.fwnode = of_fwnode_handle(nc); in bcm6328_led()
Dleds-bcm6358.c94 static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, in bcm6358_led() argument
110 if (of_property_read_bool(nc, "active-low")) in bcm6358_led()
113 if (!of_property_read_string(nc, "default-state", &state)) { in bcm6358_led()
135 init_data.fwnode = of_fwnode_handle(nc); in bcm6358_led()
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_conntrack_helper.sh40 which nc >/dev/null 2>&1
134 sleep 3 | ip netns exec ${ns2} nc -w 2 -l -p $port > /dev/null &
136 sleep 1 | ip netns exec ${ns1} nc -w 2 10.0.1.2 $port > /dev/null &
151 sleep 3 | ip netns exec ${ns2} nc -w 2 -6 -l -p $port > /dev/null &
153 sleep 1 | ip netns exec ${ns1} nc -w 2 -6 dead:1::2 $port > /dev/null &
/linux-6.1.9/arch/arm64/boot/dts/qcom/
Dmsm8996-sony-xperia-tone.dtsi245 pm8994-gpio1-nc-pins {
291 pm8994-gpio6-nc-pins {
309 pm8994-gpio8-nc-pins {
319 pm8994-gpio9-nc-pins {
339 pm8994-gpio11-nc-pins {
347 pm8994-gpio12-nc-pins {
365 pm8994-gpio14-nc-pins {
391 pm8994-gpio17-nc-pins {
409 pm8994-gpio19-nc-pins {
419 pm8994-gpio22-nc-pins {
[all …]
/linux-6.1.9/net/netfilter/
Dnfnetlink.c219 const struct nfnl_callback *nc; in nfnetlink_rcv_msg() local
246 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg()
247 if (!nc) { in nfnetlink_rcv_msg()
282 if (!nc->call) { in nfnetlink_rcv_msg()
287 switch (nc->type) { in nfnetlink_rcv_msg()
289 err = nc->call(skb, &info, (const struct nlattr **)cda); in nfnetlink_rcv_msg()
296 nfnetlink_find_client(type, ss) != nc) { in nfnetlink_rcv_msg()
301 err = nc->call(skb, &info, (const struct nlattr **)cda); in nfnetlink_rcv_msg()
376 const struct nfnl_callback *nc; in nfnetlink_rcv_batch() local
479 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_batch()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dtoeplitz_client.sh15 echo "msg $i" | nc "${IPVER}" -u -w 0 "${ADDR}" "${PORT}"
17 echo "msg $i" | nc "${IPVER}" -w 0 "${ADDR}" "${PORT}"
/linux-6.1.9/drivers/block/drbd/
Ddrbd_receiver.c268 struct net_conf *nc; in drbd_alloc_pages() local
273 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
274 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages()
595 struct net_conf *nc; in drbd_try_connect() local
601 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
602 if (!nc) { in drbd_try_connect()
606 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
607 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
608 connect_int = nc->connect_int; in drbd_try_connect()
701 struct net_conf *nc; in prepare_listen_socket() local
[all …]
/linux-6.1.9/tools/testing/selftests/rcutorture/bin/
Dconfig2csv.sh53 nc = asorti(c, cs);
57 for (i = 1; i <= nc; i++) {

12345