Searched refs:count (Results 51 - 75 of 7674) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/kvm/lib/
H A Dio.c32 * count - Number of bytes to write.
41 ssize_t test_write(int fd, const void *buf, size_t count) argument
45 size_t num_left = count;
51 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count);
77 } while (num_written < count);
109 * count - Number of bytes to read.
118 ssize_t test_read(int fd, void *buf, size_t count) argument
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c58 weight = bitmap_weight(dbm->bitmap, dbm->count);
63 weight, dbm->count);
69 dbm->count = 0;
77 * @count: number of doorbells to manage
79 * The bare-metal or PF driver can pass ~0 as &count to indicate that all
87 int xe_guc_db_mgr_init(struct xe_guc_db_mgr *dbm, unsigned int count) argument
91 if (count == ~0)
92 count = GUC_NUM_DOORBELLS;
95 dbm_assert(dbm, count <= GUC_NUM_DOORBELLS);
97 if (!count)
113 dbm_reserve_chunk_locked(struct xe_guc_db_mgr *dbm, unsigned int count, unsigned int spare) argument
142 dbm_release_chunk_locked(struct xe_guc_db_mgr *dbm, unsigned int start, unsigned int count) argument
198 xe_guc_db_mgr_reserve_range(struct xe_guc_db_mgr *dbm, unsigned int count, unsigned int spare) argument
216 xe_guc_db_mgr_release_range(struct xe_guc_db_mgr *dbm, unsigned int start, unsigned int count) argument
[all...]
/linux-master/arch/riscv/include/asm/
H A Dio.h64 unsigned int count) \
67 if (count) { \
73 } while (--count); \
81 unsigned int count) \
84 if (count) { \
89 } while (--count); \
97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count)
98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count)
[all...]
/linux-master/arch/sh/kernel/
H A Diomap.c77 static inline void mmio_insb(const void __iomem *addr, u8 *dst, int count) argument
79 while (--count >= 0) {
86 static inline void mmio_insw(const void __iomem *addr, u16 *dst, int count) argument
88 while (--count >= 0) {
95 static inline void mmio_insl(const void __iomem *addr, u32 *dst, int count) argument
97 while (--count >= 0) {
104 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) argument
106 while (--count >= 0) {
112 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) argument
114 while (--count >
120 mmio_outsl(void __iomem *addr, const u32 *src, int count) argument
128 ioread8_rep(const void __iomem *addr, void *dst, unsigned long count) argument
134 ioread16_rep(const void __iomem *addr, void *dst, unsigned long count) argument
140 ioread32_rep(const void __iomem *addr, void *dst, unsigned long count) argument
146 iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) argument
152 iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) argument
158 iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) argument
[all...]
/linux-master/arch/sh/include/asm/
H A Dio_noioport.h49 static inline void insb(unsigned long port, void *dst, unsigned long count) argument
54 static inline void insw(unsigned long port, void *dst, unsigned long count) argument
59 static inline void insl(unsigned long port, void *dst, unsigned long count) argument
64 static inline void outsb(unsigned long port, const void *src, unsigned long count) argument
69 static inline void outsw(unsigned long port, const void *src, unsigned long count) argument
74 static inline void outsl(unsigned long port, const void *src, unsigned long count) argument
/linux-master/arch/powerpc/platforms/pseries/
H A Dhvconsole.c26 * @count: not used?
28 ssize_t hvc_get_chars(uint32_t vtermno, u8 *buf, size_t count) argument
52 * firmware. Must be at least 16 bytes, even if count is less than 16.
53 * @count: Send this number of characters.
55 ssize_t hvc_put_chars(uint32_t vtermno, const u8 *buf, size_t count) argument
61 /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/
62 if (count > MAX_VIO_PUT_CHARS)
63 count = MAX_VIO_PUT_CHARS;
65 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count,
69 return count;
[all...]
/linux-master/samples/seccomp/
H A Dbpf-helper.c20 struct sock_filter *filter, size_t count)
24 if (count < 1 || count > BPF_MAXINSNS)
30 for (i = 0; i < count; ++i) {
31 size_t offset = count - i - 1;
69 if (labels->count == BPF_LABELS_MAX) {
73 if (labels->count == 0) {
76 labels->count++;
79 end = begin + labels->count;
86 labels->count
19 bpf_resolve_jumps(struct bpf_labels *labels, struct sock_filter *filter, size_t count) argument
90 seccomp_bpf_print(struct sock_filter *filter, size_t count) argument
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-nvram.c26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) argument
34 if ((off + count) > nvram_size)
35 count = nvram_size - off;
36 rc = opal_read_nvram(__pa(buf), count, off);
39 *index += count;
40 return count;
47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) argument
55 if ((off + count) > nvram_size)
56 count = nvram_size - off;
59 rc = opal_write_nvram(__pa(buf), count, of
[all...]
/linux-master/arch/mips/lib/
H A Diomap_copy.c10 * @count: number of 64-bit quantities to copy
16 void __ioread64_copy(void *to, const void __iomem *from, size_t count) argument
21 const u64 __iomem *end = src + count;
26 __ioread32_copy(to, from, count * 2);
/linux-master/tools/testing/selftests/ftrace/test.d/event/
H A Devent-pid.tc26 count=`cat trace | grep sched_switch | wc -l`
27 if [ $count -eq 0 ]; then
41 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
42 if [ $count -ne 0 ]; then
54 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
55 if [ $count -eq 0 ]; then
/linux-master/drivers/gpu/host1x/hw/
H A Dopcodes.h77 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) argument
79 return (1 << 28) | (offset << 16) | count;
82 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) argument
84 return (2 << 28) | (offset << 16) | count;
108 static inline u32 host1x_opcode_gather(unsigned count) argument
110 return (6 << 28) | count;
113 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) argument
115 return (6 << 28) | (offset << 16) | BIT(15) | count;
118 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) argument
120 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count;
133 host1x_opcode_gather_wide(unsigned count) argument
[all...]
/linux-master/tools/testing/selftests/livepatch/
H A Dtest_klp-call_getpid.c30 long count = 0; local
37 count++;
41 printf("%ld iterations done\n", count);
/linux-master/drivers/pci/hotplug/
H A Dibmphp_pci.c342 int count; local
355 for (count = 0; address[count]; count++) { /* for 6 BARs */
362 PCI_BASE_ADDRESS_0 + 4 * count, &tmp);
365 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD);
368 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF);
370 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF);
371 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
545 int count; local
1048 int count, len[6]; local
1194 int count; local
1305 int count; local
1534 int count; local
[all...]
/linux-master/arch/arm/kernel/
H A Dio.c45 void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) argument
48 while (count) {
49 count--;
61 void _memcpy_toio(volatile void __iomem *to, const void *from, size_t count) argument
64 while (count) {
65 count--;
77 void _memset_io(volatile void __iomem *dst, int c, size_t count) argument
79 while (count) {
80 count--;
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_pio_copy.c39 * @count: number of 32-bit quantities to copy
45 void qib_pio_copy(void __iomem *to, const void *from, size_t count) argument
50 const u64 *end = src + (count >> 1);
54 if (count & 1)
59 const u32 *end = src + count;
/linux-master/arch/openrisc/include/asm/
H A Dtime.h15 extern void openrisc_timer_set(unsigned long count);
/linux-master/drivers/video/fbdev/
H A Datafb_utils.h49 static inline void *fb_memclear_small(void *s, size_t count) argument
51 if (!count)
60 : "=a" (s), "=d" (count)
61 : "d" (0), "0" ((char *)s + count), "1" (count));
69 : "=a" (s), "=d" (count)
70 : "d" (0), "0" (s), "1" (count)
78 static inline void *fb_memclear(void *s, size_t count) argument
80 if (!count)
83 if (count < 1
118 fb_memset255(void *s, size_t count) argument
145 fb_memmove(void *d, const void *s, size_t count) argument
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dxdping.h10 __u16 count; member in struct:pinginfo
H A Durandom_read.c34 static noinline void urandom_read(int fd, int count) argument
39 for (i = 0; i < count; ++i) {
43 urand_read_without_sema(i, count, BUF_SIZE);
44 STAP_PROBE3(urand, read_with_sema, i, count, BUF_SIZE);
47 urandlib_read_without_sema(i, count, BUF_SIZE);
48 urandlib_read_with_sema(i, count, BUF_SIZE);
62 int count = 4; local
69 count = atoi(argv[1]);
91 urandom_read(fd, count);
/linux-master/arch/parisc/include/asm/
H A Dstring.h9 void * memcpy(void * dest,const void *src,size_t count);
/linux-master/drivers/staging/media/av7110/
H A Dav7110_ipack.c20 p->count = 0;
56 if (p->count < 10)
59 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
60 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
68 if (ac3_off < p->count)
70 p->count - ac3_off, &ai, 0);
72 nframes = (p->count - off - 3 - ac3_off) /
77 ac3_off += nframes * ai.framesize - p->count;
81 p->func(p->buf, p->count, p->data);
86 p->count
123 write_ipack(struct ipack *p, const u8 *data, int count) argument
146 av7110_ipack_instant_repack(const u8 *buf, int count, struct ipack *p) argument
[all...]
/linux-master/drivers/platform/x86/hp/hp-bioscfg/
H A Dsurestart-attributes.c34 u32 count = 0; local
38 &count, 1, sizeof(count));
43 return sysfs_emit(buf, "%d,%d,%d\n", count, LOG_ENTRY_SIZE,
55 u32 count = 0; local
61 &count, 1, sizeof(count));
70 if (count * LOG_ENTRY_SIZE > PAGE_SIZE)
77 for (i = 0; i < count; i++) {
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_listen.c64 unsigned int *count; local
73 count = bpf_map_lookup_elem(&verdict_map, &verdict);
74 if (count)
75 (*count)++;
83 unsigned int *count; local
94 count = bpf_map_lookup_elem(&verdict_map, &verdict);
95 if (count)
96 (*count)++;
104 unsigned int *count; local
113 count
123 unsigned int *count; local
[all...]
/linux-master/include/linux/
H A Dns_common.h13 refcount_t count; member in struct:ns_common
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgid.c45 dev->roce.reserved_gids.count = 0;
52 dev->roce.reserved_gids.count = 0;
56 int mlx5_core_reserve_gids(struct mlx5_core_dev *dev, unsigned int count) argument
58 if (dev->roce.reserved_gids.start < count) {
60 count);
63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) {
64 mlx5_core_warn(dev, "Unable to reserve %d more GIDs\n", count);
68 dev->roce.reserved_gids.start -= count;
69 dev->roce.reserved_gids.count
76 mlx5_core_unreserve_gids(struct mlx5_core_dev *dev, unsigned int count) argument
[all...]

Completed in 264 milliseconds

1234567891011>>