| /linux/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 49 static ssize_t fd2name(int fd, char *buf, size_t bufsize) in fd2name() argument 55 size = snprintf(buf1, PATH_MAX, "/proc/self/fd/%d", fd); in fd2name() 57 printf("snprintf(%d) failed on %m\n", fd); in fd2name() 75 int r, fd; in mfd_assert_new() local 77 fd = sys_memfd_create(name, flags); in mfd_assert_new() 78 if (fd < 0) { in mfd_assert_new() 84 r = ftruncate(fd, sz); in mfd_assert_new() 90 return fd; in mfd_assert_new() 95 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_assert_write() local 97 if (fd < 0) { in sysctl_assert_write() [all …]
|
| /linux/fs/hfsplus/ |
| H A D | bfind.c | 15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init() argument 19 fd->tree = tree; in hfs_find_init() 20 fd->bnode = NULL; in hfs_find_init() 24 fd->search_key = ptr; in hfs_find_init() 25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 33 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit() argument 35 hfs_bnode_put(fd->bnode); in hfs_find_exit() 36 kfree(fd->search_key); in hfs_find_exit() 38 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit() 39 mutex_unlock(&fd in hfs_find_exit() 44 hfs_find_1st_rec_by_cnid(struct hfs_bnode * bnode,struct hfs_find_data * fd,int * begin,int * end,int * cur_rec) hfs_find_1st_rec_by_cnid() argument 82 hfs_find_rec_by_key(struct hfs_bnode * bnode,struct hfs_find_data * fd,int * begin,int * end,int * cur_rec) hfs_find_rec_by_key() argument 103 __hfs_brec_find(struct hfs_bnode * bnode,struct hfs_find_data * fd,search_strategy_t rec_found) __hfs_brec_find() argument 153 hfs_brec_find(struct hfs_find_data * fd,search_strategy_t do_key_compare) hfs_brec_find() argument 213 hfs_brec_read(struct hfs_find_data * fd,void * rec,int rec_len) hfs_brec_read() argument 226 hfs_brec_goto(struct hfs_find_data * fd,int cnt) hfs_brec_goto() argument [all...] |
| H A D | brec.c | 15 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd); 16 static int hfs_brec_update_parent(struct hfs_find_data *fd); 63 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, u32 entry_len) in hfs_brec_insert() argument 72 tree = fd->tree; in hfs_brec_insert() 73 if (!fd->bnode) { in hfs_brec_insert() 79 fd->bnode = node; in hfs_brec_insert() 80 fd->record = -1; in hfs_brec_insert() 83 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert() 86 rec = fd->record + 1; in hfs_brec_insert() 89 node = fd in hfs_brec_insert() 179 hfs_brec_remove(struct hfs_find_data * fd) hfs_brec_remove() argument 235 hfs_bnode_split(struct hfs_find_data * fd) hfs_bnode_split() argument 356 hfs_brec_update_parent(struct hfs_find_data * fd) hfs_brec_update_parent() argument [all...] |
| /linux/drivers/clk/ |
| H A D | clk-fractional-divider.c | 53 static inline u32 clk_fd_readl(struct clk_fractional_divider *fd) in clk_fd_readl() argument 55 if (fd->flags & CLK_FRAC_DIVIDER_BIG_ENDIAN) in clk_fd_readl() 56 return ioread32be(fd->reg); in clk_fd_readl() 58 return readl(fd->reg); in clk_fd_readl() 61 static inline void clk_fd_writel(struct clk_fractional_divider *fd, u32 val) in clk_fd_writel() argument 63 if (fd->flags & CLK_FRAC_DIVIDER_BIG_ENDIAN) in clk_fd_writel() 64 iowrite32be(val, fd->reg); in clk_fd_writel() 66 writel(val, fd->reg); in clk_fd_writel() 71 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_get_div() local 77 if (fd->lock) in clk_fd_get_div() [all …]
|
| H A D | clk-fractional-divider_test.c | 11 * Test the maximum denominator case for fd clock without flags. 18 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_denominator() local 21 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_denominator() 22 KUNIT_ASSERT_NOT_NULL(test, fd); in clk_fd_test_approximation_max_denominator() 24 fd->mwidth = 3; in clk_fd_test_approximation_max_denominator() 25 fd->nwidth = 3; in clk_fd_test_approximation_max_denominator() 32 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_denominator() 40 * Test the maximum numerator case for fd clock without flags. 47 struct clk_fractional_divider *fd; in clk_fd_test_approximation_max_numerator() local 50 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_numerator() [all …]
|
| /linux/fs/hfs/ |
| H A D | bfind.c | 15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init() argument 19 if (!tree || !fd) in hfs_find_init() 22 fd->tree = tree; in hfs_find_init() 23 fd->bnode = NULL; in hfs_find_init() 27 fd->search_key = ptr; in hfs_find_init() 28 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 47 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit() argument 49 hfs_bnode_put(fd->bnode); in hfs_find_exit() 50 kfree(fd->search_key); in hfs_find_exit() 52 fd in hfs_find_exit() 58 __hfs_brec_find(struct hfs_bnode * bnode,struct hfs_find_data * fd) __hfs_brec_find() argument 110 hfs_brec_find(struct hfs_find_data * fd) hfs_brec_find() argument 170 hfs_brec_read(struct hfs_find_data * fd,void * rec,int rec_len) hfs_brec_read() argument 183 hfs_brec_goto(struct hfs_find_data * fd,int cnt) hfs_brec_goto() argument [all...] |
| /linux/tools/testing/selftests/filesystems/eventfd/ |
| H A D | eventfd_test.c | 47 int fd, flags; in TEST() local 49 fd = sys_eventfd2(0, 0); in TEST() 50 ASSERT_GE(fd, 0); in TEST() 52 flags = fcntl(fd, F_GETFL); in TEST() 56 close(fd); in TEST() 61 int fd, flags; in TEST() local 63 fd = sys_eventfd2(0, EFD_CLOEXEC); in TEST() 64 ASSERT_GE(fd, 0); in TEST() 66 flags = fcntl(fd, F_GETFD); in TEST() 70 close(fd); in TEST() [all …]
|
| /linux/tools/testing/vsock/ |
| H A D | vsock_test.c | 51 int fd; in test_stream_connection_reset() local 53 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_stream_connection_reset() 57 ret = connect(fd, &addr.sa, sizeof(addr.svm)); in test_stream_connection_reset() 71 close(fd); in test_stream_connection_reset() 87 int fd; in test_stream_bind_only_client() local 92 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_stream_bind_only_client() 96 ret = connect(fd, &addr.sa, sizeof(addr.svm)); in test_stream_bind_only_client() 113 close(fd); in test_stream_bind_only_client() 118 int fd; in test_stream_bind_only_server() local 120 fd in test_stream_bind_only_server() 133 int fd; test_stream_client_close_client() local 147 int fd; test_stream_client_close_server() local 168 int fd; test_stream_server_close_client() local 189 int fd; test_stream_server_close_server() local 260 int fd; test_msg_peek_client() local 289 int fd; test_msg_peek_server() local 358 int fd; test_seqpacket_msg_bounds_client() local 427 int fd; test_seqpacket_msg_bounds_server() local 495 int fd; test_seqpacket_msg_trunc_client() local 512 int fd; test_seqpacket_msg_trunc_server() local 562 int fd; test_seqpacket_timeout_client() local 609 int fd; test_seqpacket_timeout_server() local 627 int fd; test_seqpacket_bigmsg_client() local 668 int fd; test_seqpacket_bigmsg_server() local 686 int fd; test_seqpacket_invalid_rec_buffer_client() local 721 int fd; test_seqpacket_invalid_rec_buffer_server() local 804 int fd; test_stream_poll_rcvlowat_server() local 836 int fd; test_stream_poll_rcvlowat_client() local 899 int fd; test_inv_buf_client() local 934 int fd; test_inv_buf_server() local 980 int fd; test_stream_virtio_skb_merge_client() local 1009 int fd; test_stream_virtio_skb_merge_server() local 1065 test_stream_check_sigpipe(int fd) test_stream_check_sigpipe() argument 1126 int fd; test_stream_shutwr_client() local 1154 int fd; test_stream_shutwr_server() local 1169 int fd; test_stream_shutrd_client() local 1194 int fd; test_stream_shutrd_server() local 1285 int fd; test_unsent_bytes_client() local 1334 int fd; test_unread_bytes_client() local 1411 int fd; test_stream_rcvlowat_def_cred_upd_client() local 1448 int fd; test_stream_credit_update_test() local 1577 int fd; test_stream_leak_acceptq_client() local 1594 int fd; test_stream_leak_acceptq_server() local 1607 int fd; test_stream_msgzcopy_leak_errq_client() local 1630 int fd; test_stream_msgzcopy_leak_errq_server() local 1719 int fd, res; test_stream_msgzcopy_leak_zcskb_client() local 1778 int fd; test_stream_msgzcopy_leak_zcskb_server() local 1797 int fd, i, c; test_stream_transport_uaf() local 1901 int fd; test_stream_connect_retry_client() local 1927 int fd; test_stream_connect_retry_server() local 2117 int fd; test_stream_linger_client() local 2131 int fd; test_stream_linger_server() local 2150 int fd; test_stream_nolinger_client() local 2178 int fd; test_stream_nolinger_server() local [all...] |
| /linux/tools/perf/tests/ |
| H A D | wp.c | 16 #define WP_TEST_ASSERT_VAL(fd, text, val) \ argument 19 wp_read(fd, &count, sizeof(long long)); \ 32 static int wp_read(int fd, long long *count, int size) in wp_read() argument 34 int ret = read(fd, count, size); in wp_read() 61 int fd; in __event() local 65 fd = sys_perf_event_open(&attr, 0, -1, -1, in __event() 67 if (fd < 0) { in __event() 68 fd = -errno; in __event() 72 return fd; in __event() 82 int fd; in test__wp_ro() [all …]
|
| /linux/tools/testing/selftests/iommu/ |
| H A D | iommufd_fail_nth.c | 31 int fd; in writeat() local 33 fd = openat(dfd, fn, O_WRONLY); in writeat() 34 if (fd == -1) in writeat() 36 res = write(fd, val, val_len); in writeat() 38 close(fd); in writeat() 210 int fd; in FIXTURE() local 218 self->fd = -1; in FIXTURE_SETUP() 229 /* The access FD holds the iommufd open until it closes */ in FIXTURE_TEARDOWN() 234 _test_cmd_pasid_detach(self->fd, self->stdev_id, self->pasid); in FIXTURE_TEARDOWN() 235 teardown_iommufd(self->fd, _metadata); in FIXTURE_TEARDOWN() [all …]
|
| H A D | iommufd_utils.h | 61 MAP_SHARED, self->fd, offset)) 95 ioctl(self->fd, \ 100 static int _test_cmd_mock_domain(int fd, unsigned int ioas_id, __u32 *stdev_id, in _test_cmd_mock_domain() argument 111 ret = ioctl(fd, IOMMU_TEST_CMD, &cmd); in _test_cmd_mock_domain() 124 ASSERT_EQ(0, _test_cmd_mock_domain(self->fd, ioas_id, stdev_id, \ 127 EXPECT_ERRNO(_errno, _test_cmd_mock_domain(self->fd, ioas_id, \ 130 static int _test_cmd_mock_domain_flags(int fd, unsigned int ioas_id, in _test_cmd_mock_domain_flags() argument 142 ret = ioctl(fd, IOMMU_TEST_CMD, &cmd); in _test_cmd_mock_domain_flags() 155 ASSERT_EQ(0, _test_cmd_mock_domain_flags(self->fd, ioas_id, flags, \ 159 _test_cmd_mock_domain_flags(self->fd, ioas_id, flags, \ [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | fapll.c | 71 struct fapll_data *fd; member 79 static bool ti_fapll_clock_is_bypass(struct fapll_data *fd) in ti_fapll_clock_is_bypass() argument 81 u32 v = readl_relaxed(fd->base); in ti_fapll_clock_is_bypass() 83 if (fd->bypass_bit_inverted) in ti_fapll_clock_is_bypass() 89 static void ti_fapll_set_bypass(struct fapll_data *fd) in ti_fapll_set_bypass() argument 91 u32 v = readl_relaxed(fd->base); in ti_fapll_set_bypass() 93 if (fd->bypass_bit_inverted) in ti_fapll_set_bypass() 97 writel_relaxed(v, fd->base); in ti_fapll_set_bypass() 100 static void ti_fapll_clear_bypass(struct fapll_data *fd) in ti_fapll_clear_bypass() argument 102 u32 v = readl_relaxed(fd->base); in ti_fapll_clear_bypass() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_maps.c | 36 int fd; in test_hashmap() local 38 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), 2, &map_opts); in test_hashmap() 39 if (fd < 0) { in test_hashmap() 47 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 51 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 56 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap() 60 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 65 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 68 assert(bpf_map_lookup_and_delete_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 71 assert(bpf_map_lookup_elem(fd, in test_hashmap() 131 int fd, i, j; test_hashmap_sizes() local 154 int fd, i; test_hashmap_percpu() local 266 int i, fd, ret; helper_fill_hashmap() local 288 int fd, i, max_entries = 10000; test_hashmap_walk() local 359 int key, next_key, fd; test_arraymap() local 415 int key, next_key, fd, i; test_arraymap_percpu() local 478 int key, fd, i; test_arraymap_percpu_many_keys() local 509 int fd; test_devmap() local 523 int fd; test_devmap_hash() local 539 int fd, i; test_queuemap() local 595 int fd, i; test_stackmap() local 660 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; test_sockmap() local 1152 int mim_fd, fd, err; test_map_in_map() local 1312 int fd, i, value; test_map_large() local 1445 int fd = ((int *)data)[0]; test_update_delete() local 1475 int i, fd, key = 0, value = 0, j = 0; test_map_parallel() local 1533 int fd, key = 0, value = 0; test_map_rdonly() local 1562 int fd, key = 0, value = 0; test_map_wronly_hash() local 1590 int fd, value = 0; test_map_wronly_stack_or_queue() local 1726 int fd; test_reuseport_array() local [all...] |
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 44 int os_stat_fd(const int fd, struct uml_stat *ubuf) in os_stat_fd() argument 49 CATCH_EINTR(err = fstat64(fd, &sbuf)); in os_stat_fd() 89 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) in os_ioctl_generic() argument 93 err = ioctl(fd, cmd, arg); in os_ioctl_generic() 101 int os_get_ifname(int fd, char* namebuf) in os_get_ifname() argument 103 if (ioctl(fd, SIOCGIFNAME, namebuf) < 0) in os_get_ifname() 109 int os_mode_fd(int fd, int mode) in os_mode_fd() argument 113 CATCH_EINTR(err = fchmod(fd, mode)); in os_mode_fd() 167 int fd, err, f = 0; in os_open_file() local 188 fd = open64(file, f, mode); in os_open_file() [all …]
|
| /linux/tools/perf/tests/shell/attr/ |
| H A D | test-stat-detailed-3 | 9 fd=1 15 fd=2 21 fd=3 27 fd=4 33 fd=5 40 fd=6 47 fd=7 54 fd=8 61 fd=9 68 fd=10 [all …]
|
| H A D | test-stat-detailed-2 | 9 fd=1 15 fd=2 21 fd=3 27 fd=4 33 fd=5 40 fd=6 47 fd=7 54 fd=8 61 fd=9 68 fd=10 [all …]
|
| H A D | test-stat-detailed-1 | 9 fd=1 15 fd=2 21 fd=3 27 fd=4 33 fd=5 40 fd=6 47 fd=7 54 fd=8 61 fd=9 68 fd=10 [all …]
|
| /linux/tools/lib/perf/ |
| H A D | evsel.c | 45 assert(evsel->fd == NULL); /* If not fds were not closed. */ in perf_evsel__exit() 59 #define FD(_evsel, _cpu_map_idx, _thread) \ macro 60 ((int *)xyarray__entry(_evsel->fd, _cpu_map_idx, _thread)) 67 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd() 69 if (evsel->fd) { in perf_evsel__alloc_fd() 74 int *fd = FD(evsel, idx, thread); in perf_evsel__alloc_fd() local 76 if (fd) in perf_evsel__alloc_fd() 77 *fd = -1; in perf_evsel__alloc_fd() 82 return evsel->fd != NULL ? 0 : -ENOMEM; in perf_evsel__alloc_fd() 103 int *fd; in get_group_fd() local [all …]
|
| /linux/scripts/ipe/polgen/ |
| H A D | polgen.c | 24 FILE *fd; in policy_to_buffer() local 26 fd = fopen(pathname, "r"); in policy_to_buffer() 27 if (!fd) { in policy_to_buffer() 32 fseek(fd, 0, SEEK_END); in policy_to_buffer() 33 fsize = ftell(fd); in policy_to_buffer() 34 rewind(fd); in policy_to_buffer() 42 read = fread((void *)lbuf, sizeof(*lbuf), fsize, fd); in policy_to_buffer() 50 fclose(fd); in policy_to_buffer() 57 fclose(fd); in policy_to_buffer() 64 FILE *fd; in write_boot_policy() local [all …]
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | so_peek_off.c | 13 int fd[2]; /* 0: sender, 1: receiver */ in FIXTURE() local 44 ret = socketpair(AF_UNIX, variant->type, 0, self->fd); in FIXTURE_SETUP() 47 ret = setsockopt(self->fd[1], SOL_SOCKET, SO_RCVTIMEO_NEW, in FIXTURE_SETUP() 51 ret = setsockopt(self->fd[1], SOL_SOCKET, SO_PEEK_OFF, in FIXTURE_SETUP() 58 close_range(self->fd[0], self->fd[1], 0); in FIXTURE_TEARDOWN() 61 #define sendeq(fd, str, flags) \ argument 65 bytes = send(fd, str, len, flags); \ 69 #define recveq(fd, str, buflen, flags) \ argument 74 bytes = recv(fd, bu [all...] |
| /linux/Documentation/usb/ |
| H A D | gadget_printer.rst | 208 struct pollfd fd[1]; 211 fd[0].fd = open(PRINTER_FILE, O_RDWR); 212 if (fd[0].fd < 0) { 213 printf("Error %d opening %s\n", fd[0].fd, PRINTER_FILE); 214 close(fd[0].fd); 218 fd[0].events = POLLIN | POLLRDNORM; 226 retval = poll(fd, 1, 1000); 228 if (retval && (fd[0].revents & POLLRDNORM)) { 231 bytes_read = read(fd[0].fd, buf, BUF_SIZE); 235 fd[0].fd, PRINTER_FILE); [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | ip_local_port_range.c | 34 static int get_so_domain(int fd) in get_so_domain() argument 40 err = getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &domain, &len); in get_so_domain() 47 static int bind_to_loopback_any_port(int fd) in bind_to_loopback_any_port() argument 57 switch (get_so_domain(fd)) { in bind_to_loopback_any_port() 74 return bind(fd, &addr.sa, addr_len); in bind_to_loopback_any_port() 77 static int get_sock_port(int fd) in get_sock_port() argument 89 err = getsockname(fd, &addr.sa, &addr_len); in get_sock_port() 104 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument 111 err = getsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val, &len); in get_ip_local_port_range() 188 int fd, err; in TEST_F() local [all …]
|
| H A D | ipv6_flowlabel_mgr.c | 48 static int flowlabel_get(int fd, uint32_t label, uint8_t share, uint16_t flags) in flowlabel_get() argument 61 return setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req)); in flowlabel_get() 64 static int flowlabel_put(int fd, uint32_t label) in flowlabel_put() argument 71 return setsockopt(fd, SOL_IPV6, IPV6_FLOWLABEL_MGR, &req, sizeof(req)); in flowlabel_put() 74 static void run_tests(int fd) in run_tests() argument 80 expect_fail(flowlabel_get(fd, 1, IPV6_FL_S_ANY, 0)); in run_tests() 83 expect_fail(flowlabel_put(fd, 1)); in run_tests() 86 expect_fail(flowlabel_get(fd, 0x1FFFFF, IPV6_FL_S_ANY, in run_tests() 90 expect_pass(flowlabel_get(fd, 1, IPV6_FL_S_ANY, IPV6_FL_F_CREATE)); in run_tests() 92 expect_pass(flowlabel_get(fd, 1, IPV6_FL_S_ANY, 0)); in run_tests() [all …]
|
| /linux/tools/testing/selftests/rtc/ |
| H A D | rtctest.c | 36 int fd; in FIXTURE() local 40 self->fd = open(rtc_file, O_RDONLY); in FIXTURE_SETUP() 44 close(self->fd); in FIXTURE_TEARDOWN() 51 if (self->fd == -1 && errno == ENOENT) in TEST_F() 53 ASSERT_NE(-1, self->fd); in TEST_F() 56 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F() 92 static enum rtc_alarm_state get_rtc_alarm_state(int fd, int need_seconds) in get_rtc_alarm_state() argument 100 rc = ioctl(fd, RTC_PARAM_GET, ¶m); in get_rtc_alarm_state() 120 if (self->fd == -1 && errno == ENOENT) 122 ASSERT_NE(-1, self->fd); [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_exp_rcv.c | 15 struct hfi1_filedata *fd); 17 static int set_rcvarray_entry(struct hfi1_filedata *fd, 29 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *, 33 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo); 34 static void __clear_tid_node(struct hfi1_filedata *fd, 36 static void clear_tid_node(struct hfi1_filedata *fd, struct tid_rb_node *node); 50 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_init() argument 55 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init() 56 sizeof(*fd->entry_to_rb), in hfi1_user_exp_rcv_init() 58 if (!fd->entry_to_rb) in hfi1_user_exp_rcv_init() [all …]
|