/linux/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 199 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/net/ncsi/ |
H A D | ncsi-aen.c | 49 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 …]
|
H A D | ncsi-manage.c | 37 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 …]
|
H A D | ncsi-rsp.c | 94 struct ncsi_channel *nc; in ncsi_rsp_handler_cis() local 98 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, &np, &nc); in ncsi_rsp_handler_cis() 99 if (!nc) { in ncsi_rsp_handler_cis() 104 nc = ncsi_add_channel(np, id); in ncsi_rsp_handler_cis() 107 return nc ? 0 : -ENODEV; in ncsi_rsp_handler_cis() 141 struct ncsi_channel *nc; in ncsi_rsp_handler_dp() local 152 NCSI_FOR_EACH_CHANNEL(np, nc) { in ncsi_rsp_handler_dp() 153 spin_lock_irqsave(&nc->lock, flags); in ncsi_rsp_handler_dp() 154 nc->state = NCSI_CHANNEL_INACTIVE; in ncsi_rsp_handler_dp() 155 spin_unlock_irqrestore(&nc in ncsi_rsp_handler_dp() 165 struct ncsi_channel *nc; ncsi_rsp_handler_ec() local 187 struct ncsi_channel *nc; ncsi_rsp_handler_dc() local 214 struct ncsi_channel *nc; ncsi_rsp_handler_rc() local 236 struct ncsi_channel *nc; ncsi_rsp_handler_ecnt() local 258 struct ncsi_channel *nc; ncsi_rsp_handler_dcnt() local 281 struct ncsi_channel *nc; ncsi_rsp_handler_ae() local 310 struct ncsi_channel *nc; ncsi_rsp_handler_sl() local 332 struct ncsi_channel *nc; ncsi_rsp_handler_gls() local 364 struct ncsi_channel *nc; ncsi_rsp_handler_svf() local 401 struct ncsi_channel *nc; ncsi_rsp_handler_ev() local 428 struct ncsi_channel *nc; ncsi_rsp_handler_dv() local 453 struct ncsi_channel *nc; ncsi_rsp_handler_sma() local 499 struct ncsi_channel *nc; ncsi_rsp_handler_ebf() local 525 struct ncsi_channel *nc; ncsi_rsp_handler_dbf() local 551 struct ncsi_channel *nc; ncsi_rsp_handler_egmf() local 578 struct ncsi_channel *nc; ncsi_rsp_handler_dgmf() local 604 struct ncsi_channel *nc; ncsi_rsp_handler_snfc() local 760 struct ncsi_channel *nc; ncsi_rsp_handler_gvi() local 797 struct ncsi_channel *nc; ncsi_rsp_handler_gc() local 848 struct ncsi_channel *nc; ncsi_rsp_handler_gp() local 922 struct ncsi_channel *nc; ncsi_rsp_handler_gcps() local 983 struct ncsi_channel *nc; ncsi_rsp_handler_gns() local 1010 struct ncsi_channel *nc; ncsi_rsp_handler_gnpts() local 1079 struct ncsi_channel *nc; ncsi_rsp_handler_netlink() local [all...] |
H A D | ncsi-netlink.c | 59 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.major); in ncsi_write_channel_info() 75 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MINOR, nc->version.minor); 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 …]
|
H A D | ncsi-netlink.h | 15 struct ncsi_channel *nc); 18 struct ncsi_channel *nc);
|
H A D | internal.h | 376 #define NCSI_FOR_EACH_CHANNEL(np, nc) \ 377 list_for_each_entry_rcu(nc, &np->channels, node) 381 void ncsi_start_channel_monitor(struct ncsi_channel *nc); 382 void ncsi_stop_channel_monitor(struct ncsi_channel *nc); 395 struct ncsi_channel **nc); 374 NCSI_FOR_EACH_CHANNEL(np,nc) global() argument
|
/linux/drivers/mtd/nand/raw/ |
H A D | orion_nand.c | 30 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 114 nc = &info->chip; in orion_nand_probe() 115 mtd = nand_to_mtd(nc); in orion_nand_probe() 119 nc->controller = &info->controller; in orion_nand_probe() 153 nand_set_controller_data(nc, board); in orion_nand_probe() 154 nand_set_flash_node(nc, pdev->dev.of_node); in orion_nand_probe() [all …]
|
/linux/tools/perf/util/ |
H A D | namespaces.c | 275 struct nscookie *nc) in nsinfo__mountns_enter() argument 282 if (nc == NULL) in nsinfo__mountns_enter() 285 nc->oldns = -1; in nsinfo__mountns_enter() 286 nc->newns = -1; in nsinfo__mountns_enter() 309 nc->oldcwd = oldcwd; in nsinfo__mountns_enter() 310 nc->oldns = oldns; in nsinfo__mountns_enter() 311 nc->newns = newns; in nsinfo__mountns_enter() 322 void nsinfo__mountns_exit(struct nscookie *nc) in nsinfo__mountns_exit() argument 324 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit() 327 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit() [all …]
|
/linux/drivers/platform/x86/ |
H A D | intel_scu_ipc.c | 283 int nc; in pwr_reg_rdwr() local 297 for (nc = 0; nc < count; nc++, offset += 2) { in pwr_reg_rdwr() 298 cbuf[offset] = addr[nc]; in pwr_reg_rdwr() 299 cbuf[offset + 1] = addr[nc] >> 8; in pwr_reg_rdwr() 303 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr() 304 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() 307 for (nc = 0; nc < count; nc++, offset += 1) in pwr_reg_rdwr() 308 cbuf[offset] = data[nc]; in pwr_reg_rdwr() 309 for (nc = 0, offset = 0; nc < count; nc++, offset += 4) in pwr_reg_rdwr() 310 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router.c | 658 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/net/batman-adv/ |
H A D | network-coding.c | 72 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/include/linux/ |
H A D | nls.h | 64 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/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | proc.c | 95 struct netstat_counter *nc = &type->counters[i]; in netstat_read_type() local 102 nc->name = strndup(pos, new_pos - pos); in netstat_read_type() 103 if (nc->name == NULL) in netstat_read_type() 106 if (unlikely(!strcmp(nc->name, "MaxConn"))) in netstat_read_type() 108 if (fscanf(fnetstat, fmt, &nc->val) != 1) in netstat_read_type() 109 test_error("fscanf(%s)", nc->name); in netstat_read_type() 126 struct netstat_counter *nc; in snmp6_read() local 137 nc = &type->counters[i]; in snmp6_read() 138 nc->name = counter_name; in snmp6_read() 139 nc->val = counter; in snmp6_read()
|
/linux/Documentation/driver-api/media/drivers/ |
H A D | saa7134-devel.rst | 42 - 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/fs/nls/ |
H A D | nls_base.c | 58 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/tools/testing/selftests/drivers/net/ |
H A D | ping.py | 30 with bkg(listen_cmd, exit_wait=True) as nc: 35 ksft_eq(nc.stdout.strip(), "ping") 37 with bkg(listen_cmd, host=cfg.remote, exit_wait=True) as nc: 41 ksft_eq(nc.stdout.strip(), "ping")
|
/linux/drivers/bus/ |
H A D | moxtet.c | 204 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/tools/testing/selftests/net/openvswitch/ |
H A D | openvswitch.sh | 392 "test_drop_reason" ip netns exec client nc -i 1 -zuv 172.31.110.20 6000 400 "test_drop_reason" ip netns exec client nc -i 1 -zuv 172.31.110.20 7000 457 which nc >/dev/null 2>/dev/null || return $ksft_skip 500 nc -lvnp 4443 501 ovs_sbx "test_ct_connect_v4" ip netns exec client nc -i 1 -zv 172.31.110.20 4443 || return 1 506 nc -lvnp 4443 507 ovs_sbx "test_ct_connect_v4" ip netns exec client nc -i 1 -zv 172.31.110.10 4443 562 which nc >/dev/null 2>/dev/null || return $ksft_skip 602 nc -lvnp 4443 603 ovs_sbx "test_nat_connect_v4" ip netns exec client nc -i 1 -zv 192.168.0.20 4443 || return 1 [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8996-sony-xperia-tone.dtsi | 240 pm8994-gpio1-nc-pins { 286 pm8994-gpio6-nc-pins { 304 pm8994-gpio8-nc-pins { 314 pm8994-gpio9-nc-pins { 334 pm8994-gpio11-nc-pins { 342 pm8994-gpio12-nc-pins { 360 pm8994-gpio14-nc-pins { 386 pm8994-gpio17-nc-pins { 404 pm8994-gpio19-nc-pins { 414 pm8994-gpio22-nc-pins { [all …]
|
/linux/net/netfilter/ |
H A D | nfnetlink.c | 220 const struct nfnl_callback *nc; in nfnetlink_rcv_msg() local 247 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg() 248 if (!nc) { in nfnetlink_rcv_msg() 283 if (!nc->call) { in nfnetlink_rcv_msg() 288 switch (nc->type) { in nfnetlink_rcv_msg() 290 err = nc->call(skb, &info, (const struct nlattr **)cda); in nfnetlink_rcv_msg() 297 nfnetlink_find_client(type, ss) != nc) { in nfnetlink_rcv_msg() 302 err = nc->call(skb, &info, (const struct nlattr **)cda); in nfnetlink_rcv_msg() 377 const struct nfnl_callback *nc; in nfnetlink_rcv_batch() local 485 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_batch() [all …]
|
/linux/drivers/leds/ |
H A D | leds-bcm6328.c | 255 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 348 if (of_property_read_bool(nc, "active-low")) in bcm6328_led() 351 init_data.fwnode = of_fwnode_handle(nc); in bcm6328_led()
|
/linux/tools/testing/selftests/net/ |
H A D | toeplitz_client.sh | 15 echo "msg $i" | nc "${IPVER}" -u -w 0 "${ADDR}" "${PORT}" 17 echo "msg $i" | nc "${IPVER}" -w 0 "${ADDR}" "${PORT}"
|
/linux/drivers/block/drbd/ |
H A D | drbd_req.c | 566 struct net_conf *nc; in __req_mod() local 588 nc = rcu_dereference(connection->net_conf); in __req_mod() 589 p = nc->wire_protocol; in __req_mod() 701 nc = rcu_dereference(connection->net_conf); in __req_mod() 702 p = nc->max_epoch_size; in __req_mod() 987 struct net_conf *nc; in maybe_pull_ahead() local 992 nc = rcu_dereference(connection->net_conf); in maybe_pull_ahead() 993 on_congestion = nc ? nc->on_congestion : OC_BLOCK; in maybe_pull_ahead() 1009 if (nc->cong_fill && in maybe_pull_ahead() 1010 atomic_read(&device->ap_in_flight) >= nc->cong_fill) { in maybe_pull_ahead() [all …]
|
H A D | drbd_receiver.c | 267 struct net_conf *nc; in drbd_alloc_pages() local 272 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages() 273 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages() 594 struct net_conf *nc; in drbd_try_connect() local 600 nc = rcu_dereference(connection->net_conf); in drbd_try_connect() 601 if (!nc) { in drbd_try_connect() 605 sndbuf_size = nc->sndbuf_size; in drbd_try_connect() 606 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect() 607 connect_int = nc->connect_int; in drbd_try_connect() 700 struct net_conf *nc; in prepare_listen_socket() local [all …]
|