Searched refs:hello (Results 1 - 43 of 43) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lnet/klnds/socklnd/
H A Dsocklnd_proto.c31 * pro_send_hello : send hello message
32 * pro_recv_hello : receive hello message
453 ksocknal_send_hello_v1(ksock_conn_t *conn, ksock_hello_msg_t *hello) ksocknal_send_hello_v1() argument
491 hdr->src_nid = cpu_to_le64 (hello->kshm_src_nid); ksocknal_send_hello_v1()
492 hdr->src_pid = cpu_to_le32 (hello->kshm_src_pid); ksocknal_send_hello_v1()
494 hdr->payload_length = cpu_to_le32 (hello->kshm_nips * sizeof(__u32)); ksocknal_send_hello_v1()
495 hdr->msg.hello.type = cpu_to_le32 (hello->kshm_ctype); ksocknal_send_hello_v1()
496 hdr->msg.hello.incarnation = cpu_to_le64 (hello->kshm_src_incarnation); ksocknal_send_hello_v1()
507 if (hello->kshm_nips == 0) ksocknal_send_hello_v1()
510 for (i = 0; i < (int) hello->kshm_nips; i++) { ksocknal_send_hello_v1()
511 hello->kshm_ips[i] = __cpu_to_le32 (hello->kshm_ips[i]); ksocknal_send_hello_v1()
514 rc = libcfs_sock_write(sock, hello->kshm_ips, ksocknal_send_hello_v1()
515 hello->kshm_nips * sizeof(__u32), ksocknal_send_hello_v1()
519 rc, hello->kshm_nips, ksocknal_send_hello_v1()
529 ksocknal_send_hello_v2(ksock_conn_t *conn, ksock_hello_msg_t *hello) ksocknal_send_hello_v2() argument
534 hello->kshm_magic = LNET_PROTO_MAGIC; ksocknal_send_hello_v2()
535 hello->kshm_version = conn->ksnc_proto->pro_version; ksocknal_send_hello_v2()
541 hello->kshm_version++; /* just different! */ ksocknal_send_hello_v2()
547 rc = libcfs_sock_write(sock, hello, offsetof(ksock_hello_msg_t, kshm_ips), ksocknal_send_hello_v2()
556 if (hello->kshm_nips == 0) ksocknal_send_hello_v2()
559 rc = libcfs_sock_write(sock, hello->kshm_ips, ksocknal_send_hello_v2()
560 hello->kshm_nips * sizeof(__u32), ksocknal_send_hello_v2()
564 rc, hello->kshm_nips, ksocknal_send_hello_v2()
572 ksocknal_recv_hello_v1(ksock_conn_t *conn, ksock_hello_msg_t *hello, ksocknal_recv_hello_v1() argument
605 hello->kshm_src_nid = le64_to_cpu(hdr->src_nid); ksocknal_recv_hello_v1()
606 hello->kshm_src_pid = le32_to_cpu(hdr->src_pid); ksocknal_recv_hello_v1()
607 hello->kshm_src_incarnation = le64_to_cpu(hdr->msg.hello.incarnation); ksocknal_recv_hello_v1()
608 hello->kshm_ctype = le32_to_cpu(hdr->msg.hello.type); ksocknal_recv_hello_v1()
609 hello->kshm_nips = le32_to_cpu(hdr->payload_length) / ksocknal_recv_hello_v1()
612 if (hello->kshm_nips > LNET_MAX_INTERFACES) { ksocknal_recv_hello_v1()
614 hello->kshm_nips, &conn->ksnc_ipaddr); ksocknal_recv_hello_v1()
619 if (hello->kshm_nips == 0) ksocknal_recv_hello_v1()
622 rc = libcfs_sock_read(sock, hello->kshm_ips, ksocknal_recv_hello_v1()
623 hello->kshm_nips * sizeof(__u32), timeout); ksocknal_recv_hello_v1()
631 for (i = 0; i < (int) hello->kshm_nips; i++) { ksocknal_recv_hello_v1()
632 hello->kshm_ips[i] = __le32_to_cpu(hello->kshm_ips[i]); ksocknal_recv_hello_v1()
634 if (hello->kshm_ips[i] == 0) { ksocknal_recv_hello_v1()
648 ksocknal_recv_hello_v2(ksock_conn_t *conn, ksock_hello_msg_t *hello, int timeout) ksocknal_recv_hello_v2() argument
654 if (hello->kshm_magic == LNET_PROTO_MAGIC) ksocknal_recv_hello_v2()
659 rc = libcfs_sock_read(sock, &hello->kshm_src_nid, ksocknal_recv_hello_v2()
671 __swab32s(&hello->kshm_src_pid); ksocknal_recv_hello_v2()
672 __swab64s(&hello->kshm_src_nid); ksocknal_recv_hello_v2()
673 __swab32s(&hello->kshm_dst_pid); ksocknal_recv_hello_v2()
674 __swab64s(&hello->kshm_dst_nid); ksocknal_recv_hello_v2()
675 __swab64s(&hello->kshm_src_incarnation); ksocknal_recv_hello_v2()
676 __swab64s(&hello->kshm_dst_incarnation); ksocknal_recv_hello_v2()
677 __swab32s(&hello->kshm_ctype); ksocknal_recv_hello_v2()
678 __swab32s(&hello->kshm_nips); ksocknal_recv_hello_v2()
681 if (hello->kshm_nips > LNET_MAX_INTERFACES) { ksocknal_recv_hello_v2()
683 hello->kshm_nips, &conn->ksnc_ipaddr); ksocknal_recv_hello_v2()
687 if (hello->kshm_nips == 0) ksocknal_recv_hello_v2()
690 rc = libcfs_sock_read(sock, hello->kshm_ips, ksocknal_recv_hello_v2()
691 hello->kshm_nips * sizeof(__u32), timeout); ksocknal_recv_hello_v2()
699 for (i = 0; i < (int) hello->kshm_nips; i++) { ksocknal_recv_hello_v2()
701 __swab32s(&hello->kshm_ips[i]); ksocknal_recv_hello_v2()
703 if (hello->kshm_ips[i] == 0) { ksocknal_recv_hello_v2()
H A Dsocklnd_cb.c1607 ksocknal_parse_proto_version (ksock_hello_msg_t *hello) ksocknal_parse_proto_version() argument
1611 if (hello->kshm_magic == LNET_PROTO_MAGIC) ksocknal_parse_proto_version()
1612 version = hello->kshm_version; ksocknal_parse_proto_version()
1613 else if (hello->kshm_magic == __swab32(LNET_PROTO_MAGIC)) ksocknal_parse_proto_version()
1614 version = __swab32(hello->kshm_version); ksocknal_parse_proto_version()
1634 if (hello->kshm_magic == le32_to_cpu(LNET_PROTO_TCP_MAGIC)) { ksocknal_parse_proto_version()
1635 lnet_magicversion_t *hmv = (lnet_magicversion_t *)hello; ksocknal_parse_proto_version()
1650 lnet_nid_t peer_nid, ksock_hello_msg_t *hello) ksocknal_send_hello()
1655 LASSERT (hello->kshm_nips <= LNET_MAX_INTERFACES); ksocknal_send_hello()
1660 hello->kshm_src_nid = ni->ni_nid; ksocknal_send_hello()
1661 hello->kshm_dst_nid = peer_nid; ksocknal_send_hello()
1662 hello->kshm_src_pid = the_lnet.ln_pid; ksocknal_send_hello()
1664 hello->kshm_src_incarnation = net->ksnn_incarnation; ksocknal_send_hello()
1665 hello->kshm_ctype = conn->ksnc_type; ksocknal_send_hello()
1667 return conn->ksnc_proto->pro_send_hello(conn, hello); ksocknal_send_hello()
1688 ksock_hello_msg_t *hello, lnet_process_id_t *peerid, ksocknal_recv_hello()
1710 rc = libcfs_sock_read(sock, &hello->kshm_magic, sizeof (hello->kshm_magic), timeout); ksocknal_recv_hello()
1718 if (hello->kshm_magic != LNET_PROTO_MAGIC && ksocknal_recv_hello()
1719 hello->kshm_magic != __swab32(LNET_PROTO_MAGIC) && ksocknal_recv_hello()
1720 hello->kshm_magic != le32_to_cpu (LNET_PROTO_TCP_MAGIC)) { ksocknal_recv_hello()
1723 __cpu_to_le32 (hello->kshm_magic), ksocknal_recv_hello()
1729 rc = libcfs_sock_read(sock, &hello->kshm_version, ksocknal_recv_hello()
1730 sizeof(hello->kshm_version), timeout); ksocknal_recv_hello()
1738 proto = ksocknal_parse_proto_version(hello); ksocknal_recv_hello()
1749 hello->kshm_nips = 0; ksocknal_recv_hello()
1750 ksocknal_send_hello(ni, conn, ni->ni_nid, hello); ksocknal_recv_hello()
1763 /* receive the rest of hello message anyway */ ksocknal_recv_hello()
1764 rc = conn->ksnc_proto->pro_recv_hello(conn, hello, timeout); ksocknal_recv_hello()
1766 CERROR("Error %d reading or checking hello from from %pI4h\n", ksocknal_recv_hello()
1772 *incarnation = hello->kshm_src_incarnation; ksocknal_recv_hello()
1774 if (hello->kshm_src_nid == LNET_NID_ANY) { ksocknal_recv_hello()
1786 recv_id.nid = hello->kshm_src_nid; ksocknal_recv_hello()
1787 recv_id.pid = hello->kshm_src_pid; ksocknal_recv_hello()
1794 conn->ksnc_type = ksocknal_invert_type(hello->kshm_ctype); ksocknal_recv_hello()
1797 hello->kshm_ctype, libcfs_id2str(*peerid), ksocknal_recv_hello()
1814 if (hello->kshm_ctype == SOCKLND_CONN_NONE) { ksocknal_recv_hello()
1819 if (ksocknal_invert_type(hello->kshm_ctype) != conn->ksnc_type) { ksocknal_recv_hello()
1823 hello->kshm_ctype); ksocknal_recv_hello()
1649 ksocknal_send_hello(lnet_ni_t *ni, ksock_conn_t *conn, lnet_nid_t peer_nid, ksock_hello_msg_t *hello) ksocknal_send_hello() argument
1687 ksocknal_recv_hello(lnet_ni_t *ni, ksock_conn_t *conn, ksock_hello_msg_t *hello, lnet_process_id_t *peerid, __u64 *incarnation) ksocknal_recv_hello() argument
H A Dsocklnd.c1021 ksock_hello_msg_t *hello; ksocknal_create_conn() local
1058 LIBCFS_ALLOC(hello, offsetof(ksock_hello_msg_t, ksocknal_create_conn()
1060 if (hello == NULL) { ksocknal_create_conn()
1080 hello->kshm_nips = ksocknal_local_ipvec(ni, hello->kshm_ips); ksocknal_create_conn()
1097 rc = ksocknal_send_hello(ni, conn, peerid.nid, hello); ksocknal_create_conn()
1108 rc = ksocknal_recv_hello(ni, conn, hello, &peerid, &incarnation); ksocknal_create_conn()
1298 hello->kshm_ips, hello->kshm_nips); ksocknal_create_conn()
1300 hello->kshm_nips = ksocknal_select_ips(peer, hello->kshm_ips, ksocknal_create_conn()
1301 hello->kshm_nips); ksocknal_create_conn()
1302 rc = ksocknal_send_hello(ni, conn, peerid.nid, hello); ksocknal_create_conn()
1305 LIBCFS_FREE(hello, offsetof(ksock_hello_msg_t, ksocknal_create_conn()
1308 /* setup the socket AFTER I've received hello (it disables ksocknal_create_conn()
1369 hello->kshm_nips = 0; ksocknal_create_conn()
1370 ksocknal_send_hello(ni, conn, peerid.nid, hello); ksocknal_create_conn()
1382 if (hello != NULL) ksocknal_create_conn()
1383 LIBCFS_FREE(hello, offsetof(ksock_hello_msg_t, ksocknal_create_conn()
H A Dsocklnd.h561 lnet_nid_t peer_nid, ksock_hello_msg_t *hello);
563 ksock_hello_msg_t *hello, lnet_process_id_t *id,
/linux-4.1.27/samples/kdb/
H A Dkdb_hello.c45 kdb_register("hello", kdb_hello_cmd, "[string]", kdb_hello_cmd_init()
52 kdb_unregister("hello"); kdb_hello_cmd_exit()
59 MODULE_DESCRIPTION("KDB example to add a hello command");
/linux-4.1.27/net/ceph/
H A Dauth_x_protocol.h30 /* initial hello (no reply header) */
H A Dauth_x.c503 /* it's a hello */ ceph_x_handle_reply()
H A Dmessenger.c1421 * We connected to a peer and are saying hello.
1752 * Verify the hello banner looks okay.
/linux-4.1.27/samples/kfifo/
H A Drecord-example.c76 struct { unsigned char buf[6]; } hello = { "hello" }; testfunc() local
80 kfifo_in(&test, &hello, sizeof(hello)); testfunc()
H A Dbytestream-example.c63 kfifo_in(&test, "hello", 5); testfunc()
/linux-4.1.27/include/linux/mfd/
H A Dmax77693.h5 * SangYoung Son <hello.son@samsung.com>
H A Dmax77693-private.h5 * SangYoung Son <hello.son@samsung.com>
/linux-4.1.27/include/net/
H A Ddn_dev.h55 * t2 - Rate limit timer, min time between routing and hello messages
56 * t3 - Hello timer, send hello messages when it expires
H A Ddn_route.h52 /* Values for info field in hello message */
/linux-4.1.27/tools/build/feature/
H A DMakefile12 test-hello.bin \
51 test-hello.bin:
H A Dtest-all.c25 # include "test-hello.c"
/linux-4.1.27/drivers/input/mouse/
H A Delan_i2c_smbus.c62 /* Get hello packet */ elan_smbus_initialize()
66 dev_err(&client->dev, "hello packet length fail: %d\n", len); elan_smbus_initialize()
71 /* compare hello packet */ elan_smbus_initialize()
73 dev_err(&client->dev, "hello packet fail [%*ph]\n", elan_smbus_initialize()
/linux-4.1.27/arch/blackfin/kernel/
H A Dkgdb_test.c63 kgdb_test("hello world!", 12, 0x55, 0x10); kgdb_test_proc_read()
/linux-4.1.27/samples/rpmsg/
H A Drpmsg_client_sample.c24 #define MSG "hello world!"
/linux-4.1.27/samples/trace_events/
H A Dtrace-events-sample.c35 trace_foo_bar("hello", cnt, array, random_strings[len], simple_thread_func()
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/
H A Dsocklnd.h98 /* We need to know this number to parse hello msg from ksocklnd in
H A Dptllnd_wire.h99 kptl_hello_msg_t hello; member in union:__anon9896::__anon9897
H A Dlib-types.h124 lnet_hello_t hello; member in union:__anon9839::__anon9840
/linux-4.1.27/arch/mips/sgi-ip22/
H A Dip22-eisa.c126 /* First say hello to the EIU */ ip22_eisa_init()
/linux-4.1.27/net/decnet/
H A Ddn_neigh.c159 * by a hello message in most cases. dn_neigh_construct()
368 * Pointopoint link receives a hello message
376 * Ethernet router hello message received
438 * Endnode hello message received
H A Ddn_dev.c22 * Patrick Caulfield : Fixed router hello message format
/linux-4.1.27/net/bridge/
H A Dbr_stp_timer.c38 br_debug(br, "hello timer expired\n"); br_hello_timer_expired()
/linux-4.1.27/net/sched/
H A Dact_simple.c40 * Example if this was the 3rd packet and the string was "hello" tcf_simp()
/linux-4.1.27/include/linux/
H A Delfnote.h36 * 'descdata' is the data itself e.g. "hello, world".
/linux-4.1.27/drivers/mfd/
H A Dmax77693.c5 * SangYoung Son <hello.son@smasung.com>
398 MODULE_AUTHOR("SangYoung, Son <hello.son@samsung.com>");
/linux-4.1.27/tools/perf/config/
H A Dutilities.mak101 # |hello
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Dapi-ni.c267 CLASSERT((int)offsetof(lnet_hdr_t, msg.hello.incarnation) == 32); lnet_assert_wire_constants()
268 CLASSERT((int)sizeof(((lnet_hdr_t *)0)->msg.hello.incarnation) == 8); lnet_assert_wire_constants()
269 CLASSERT((int)offsetof(lnet_hdr_t, msg.hello.type) == 40); lnet_assert_wire_constants()
270 CLASSERT((int)sizeof(((lnet_hdr_t *)0)->msg.hello.type) == 4); lnet_assert_wire_constants()
/linux-4.1.27/drivers/input/touchscreen/
H A Delants_i2c.c527 "failed to read 'hello' packet: %d\n", error); elants_i2c_initialize()
541 "invalid 'hello' packet: %*ph\n", elants_i2c_initialize()
688 /* Old iap needs to wait 200ms for WDT and rest is for hello packets */ elants_i2c_do_update_firmware()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Dmt352.c522 dprintk("%s: hello\n",__func__); mt352_init()
/linux-4.1.27/drivers/media/i2c/
H A Dmsp3400-driver.c825 /* hello world :-) */ msp_probe()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Ds3c2410_udc.c1646 /* time to say "hello, world" */ s3c2410_udc_enable()
/linux-4.1.27/fs/ocfs2/
H A Dinode.c835 * voting [hello, deadlock city!] so we cannot delete the inode. But ocfs2_inode_is_valid_to_delete()
/linux-4.1.27/arch/mn10300/kernel/
H A Dgdb-stub.c1862 gdbstub_io_tx_char('+'); /* 'hello world' */ gdbstub_init()
/linux-4.1.27/arch/frv/kernel/
H A Dgdb-stub.c2040 gdbstub_tx_char('+'); /* 'hello world' */ gdbstub_init()
/linux-4.1.27/drivers/net/ethernet/3com/
H A Dtyphoon.c466 /* We only get a hello request if we've not sent anything to the typhoon_hello()
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_hw.c879 * "hello timeout" and we haven't exhausted our retries, try csio_do_hello()
/linux-4.1.27/fs/btrfs/
H A Dtree-log.c4314 * echo "hello world" > /mnt/x/foobar
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c3921 * "hello timeout" and we haven't exhausted our retries, try t4_fw_hello()

Completed in 1262 milliseconds