/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | io.c | 32 * 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 D | xe_guc_db_mgr.c | 58 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 D | io.h | 64 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 D | iomap.c | 77 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 D | io_noioport.h | 49 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 D | hvconsole.c | 26 * @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 D | bpf-helper.c | 20 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 D | opal-nvram.c | 26 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 D | iomap_copy.c | 10 * @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 D | event-pid.tc | 26 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 D | opcodes.h | 77 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 D | test_klp-call_getpid.c | 30 long count = 0; local 37 count++; 41 printf("%ld iterations done\n", count);
|
/linux-master/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 342 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 D | io.c | 45 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 D | qib_pio_copy.c | 39 * @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 D | time.h | 15 extern void openrisc_timer_set(unsigned long count);
|
/linux-master/drivers/video/fbdev/ |
H A D | atafb_utils.h | 49 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 D | xdping.h | 10 __u16 count; member in struct:pinginfo
|
H A D | urandom_read.c | 34 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 D | string.h | 9 void * memcpy(void * dest,const void *src,size_t count);
|
/linux-master/drivers/staging/media/av7110/ |
H A D | av7110_ipack.c | 20 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 D | surestart-attributes.c | 34 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 D | test_sockmap_listen.c | 64 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 D | ns_common.h | 13 refcount_t count; member in struct:ns_common
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 45 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...] |