Home
last modified time | relevance | path

Searched full:fd (Results 1 – 25 of 2042) sorted by relevance

12345678910>>...82

/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c49 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 Dbfind.c15 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->tree->tree_lock); in hfs_find_exit()
[all …]
/linux/drivers/clk/
H A Dclk-fractional-divider.c53 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 Dclk-fractional-divider_test.c11 * 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 Dbfind.c15 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->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
[all …]
/linux/tools/testing/selftests/filesystems/eventfd/
H A Deventfd_test.c47 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 Dvsock_test.c51 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 = vsock_bind(VMADDR_CID_ANY, opts->peer_port, SOCK_STREAM); in test_stream_bind_only_server()
[all …]
/linux/tools/perf/tests/
H A Dwp.c16 #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 Diommufd_fail_nth.c31 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 Diommufd_utils.h61 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_i
162 _test_cmd_mock_domain_replace(int fd,__u32 stdev_id,__u32 pt_id,__u32 * hwpt_id) _test_cmd_mock_domain_replace() argument
190 _test_cmd_hwpt_alloc(int fd,__u32 device_id,__u32 pt_id,__u32 ft_id,__u32 flags,__u32 * hwpt_id,__u32 data_type,void * data,size_t data_len) _test_cmd_hwpt_alloc() argument
293 _test_cmd_hwpt_invalidate(int fd,__u32 hwpt_id,void * reqs,uint32_t data_type,uint32_t lreq,uint32_t * nreqs) _test_cmd_hwpt_invalidate() argument
324 _test_cmd_viommu_invalidate(int fd,__u32 viommu_id,void * reqs,uint32_t data_type,uint32_t lreq,uint32_t * nreqs) _test_cmd_viommu_invalidate() argument
356 _test_cmd_access_replace_ioas(int fd,__u32 access_id,unsigned int ioas_id) _test_cmd_access_replace_ioas() argument
375 _test_cmd_set_dirty_tracking(int fd,__u32 hwpt_id,bool enabled) _test_cmd_set_dirty_tracking() argument
392 _test_cmd_get_dirty_bitmap(int fd,__u32 hwpt_id,size_t length,__u64 iova,size_t page_size,__u64 * bitmap,__u32 flags) _test_cmd_get_dirty_bitmap() argument
413 test_cmd_get_dirty_bitmap(fd,hwpt_id,length,iova,page_size,bitmap,flags) global() argument
418 _test_cmd_mock_domain_set_dirty(int fd,__u32 hwpt_id,size_t length,__u64 iova,size_t page_size,__u64 * bitmap,__u64 * dirty) _test_cmd_mock_domain_set_dirty() argument
443 test_cmd_mock_domain_set_dirty(fd,hwpt_id,length,iova,page_size,bitmap,nr) global() argument
449 _test_mock_dirty_bitmaps(int fd,__u32 hwpt_id,size_t length,__u64 iova,size_t page_size,size_t pte_page_size,__u64 * bitmap,__u64 nbits,__u32 flags,struct __test_metadata * _metadata) _test_mock_dirty_bitmaps() argument
505 _test_cmd_create_access(int fd,unsigned int ioas_id,__u32 * access_id,unsigned int flags) _test_cmd_create_access() argument
533 _test_cmd_destroy_access_pages(int fd,unsigned int access_id,unsigned int access_pages_id) _test_cmd_destroy_access_pages() argument
551 _test_ioctl_destroy(int fd,unsigned int id) _test_ioctl_destroy() argument
561 _test_ioctl_ioas_alloc(int fd,__u32 * id) _test_ioctl_ioas_alloc() argument
580 _test_ioctl_ioas_map(int fd,unsigned int ioas_id,void * buffer,size_t length,__u64 * iova,unsigned int flags) _test_ioctl_ioas_map() argument
652 _test_ioctl_ioas_unmap(int fd,unsigned int ioas_id,uint64_t iova,size_t length,uint64_t * out_len) _test_ioctl_ioas_unmap() argument
680 _test_ioctl_ioas_map_file(int fd,unsigned int ioas_id,int mfd,size_t start,size_t length,__u64 * iova,unsigned int flags) _test_ioctl_ioas_map_file() argument
721 _test_ioctl_set_temp_memory_limit(int fd,unsigned int limit) _test_ioctl_set_temp_memory_limit() argument
739 teardown_iommufd(int fd,struct __test_metadata * _metadata) teardown_iommufd() argument
769 _test_cmd_get_hw_info(int fd,__u32 device_id,__u32 data_type,void * data,size_t data_len,uint32_t * capabilities,uint8_t * max_pasid) _test_cmd_get_hw_info() argument
848 _test_ioctl_fault_alloc(int fd,__u32 * fault_id,__u32 * fault_fd) _test_ioctl_fault_alloc() argument
871 _test_cmd_trigger_iopf(int fd,__u32 device_id,__u32 pasid,__u32 fault_fd) _test_cmd_trigger_iopf() argument
915 _test_cmd_viommu_alloc(int fd,__u32 device_id,__u32 hwpt_id,__u32 flags,__u32 type,void * data,__u32 data_len,__u32 * viommu_id) _test_cmd_viommu_alloc() argument
948 _test_cmd_vdevice_alloc(int fd,__u32 viommu_id,__u32 idev_id,__u64 virt_id,__u32 * vdev_id) _test_cmd_vdevice_alloc() argument
975 _test_cmd_hw_queue_alloc(int fd,__u32 viommu_id,__u32 type,__u32 idx,__u64 base_addr,__u64 length,__u32 * hw_queue_id) _test_cmd_hw_queue_alloc() argument
1006 _test_cmd_veventq_alloc(int fd,__u32 viommu_id,__u32 type,__u32 * veventq_id,__u32 * veventq_fd) _test_cmd_veventq_alloc() argument
1036 _test_cmd_trigger_vevents(int fd,__u32 dev_id,__u32 nvevents) _test_cmd_trigger_vevents() argument
1059 _test_cmd_read_vevents(int fd,__u32 event_fd,__u32 nvevents,__u32 virt_id,int * prev_seq) _test_cmd_read_vevents() argument
1120 _test_cmd_pasid_attach(int fd,__u32 stdev_id,__u32 pasid,__u32 pt_id) _test_cmd_pasid_attach() argument
1146 _test_cmd_pasid_replace(int fd,__u32 stdev_id,__u32 pasid,__u32 pt_id) _test_cmd_pasid_replace() argument
1172 _test_cmd_pasid_detach(int fd,__u32 stdev_id,__u32 pasid) _test_cmd_pasid_detach() argument
1190 test_cmd_pasid_check_hwpt(int fd,__u32 stdev_id,__u32 pasid,__u32 hwpt_id) test_cmd_pasid_check_hwpt() argument
[all...]
/linux/fs/
H A Dfile.c7 * Manage the dynamic fd arrays in the process files_struct.
105 kvfree(fdt->fd); in __free_fdtable()
120 * Copy 'count' fd bits from the old table to the new table and clear the extra
149 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
150 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable()
179 * 256 slots (i.e. 1Kb fd array). in alloc_fdtable()
180 * 3. on 64bit don't skip anything, 1Kb fd array means 128 slots there in alloc_fdtable()
222 fdt->fd = data; in alloc_fdtable()
238 kvfree(fdt->fd); in alloc_fdtable()
247 * This function will allocate a new fdtable and both fd array and fdset, of
[all …]
/linux/drivers/clk/ti/
H A Dfapll.c71 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/arch/um/os-Linux/
H A Dfile.c44 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/testing/selftests/bpf/
H A Dtest_maps.c36 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, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
[all …]
/linux/tools/perf/tests/shell/attr/
H A Dtest-stat-detailed-39 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 Dtest-stat-detailed-29 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 Dtest-stat-detailed-19 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/scripts/ipe/polgen/
H A Dpolgen.c24 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/lib/perf/
H A Devsel.c45 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/Documentation/usb/
H A Dgadget_printer.rst208 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/kvm/
H A Dguest_memfd_test.c27 static void test_file_read_write(int fd, size_t total_size) in test_file_read_write() argument
31 TEST_ASSERT(read(fd, buf, sizeof(buf)) < 0, in test_file_read_write()
32 "read on a guest_mem fd should fail"); in test_file_read_write()
33 TEST_ASSERT(write(fd, buf, sizeof(buf)) < 0, in test_file_read_write()
34 "write on a guest_mem fd should fail"); in test_file_read_write()
35 TEST_ASSERT(pread(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
36 "pread on a guest_mem fd should fail"); in test_file_read_write()
37 TEST_ASSERT(pwrite(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
38 "pwrite on a guest_mem fd should fail"); in test_file_read_write()
41 static void test_mmap_cow(int fd, size_t size) in test_mmap_cow() argument
[all …]
/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c34 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 Dipv6_flowlabel_mgr.c48 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 Drtctest.c36 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, &param); 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 Duser_exp_rcv.c15 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 …]

12345678910>>...82