| /linux/arch/alpha/kernel/ |
| H A D | io.c | 275 * Read COUNT 8-bit bytes from port PORT into memory starting at SRC. 277 void ioread8_rep(const void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 280 if (!count) in ioread8_rep() 282 count--; in ioread8_rep() 287 while (count >= 4) { in ioread8_rep() 289 count -= 4; in ioread8_rep() 298 while (count) { in ioread8_rep() 299 --count; in ioread8_rep() 305 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 307 ioread8_rep(ioport_map(port, 1), dst, count); in insb() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | ibmphp_pci.c | 342 int count; in configure_device() local 355 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device() 362 PCI_BASE_ADDRESS_0 + 4 * count, &tmp); in configure_device() 365 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD); in configure_device() 368 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF); in configure_device() 370 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 371 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() 373 if (!bar[count]) /* This BAR is not implemented */ in configure_device() 376 debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device() 378 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device() [all …]
|
| /linux/tools/usb/ |
| H A D | hcd-tests.sh | 32 declare -i COUNT BUFLEN 34 COUNT=50000 51 if ! ./testusb $TEST_ARGS -s $BUFLEN -c $COUNT $* 2>/dev/null 95 COUNT=5000 98 # FIXME automatically multiply COUNT by 10 when 101 # COUNT=50000 126 echo "test 1: $COUNT transfers, same size" 128 echo "test 3: $COUNT transfers, variable/short size" 131 COUNT=100 132 echo "test 17: $COUNT transfers, unaligned DMA map by core" [all …]
|
| /linux/drivers/tty/ |
| H A D | tty_ldsem.c | 12 * 1) Upper half of semaphore count is a wait count (differs from rwsem 67 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 78 long adjust, count; in __ldsem_wake_readers() local 82 * Note the 'active part' of the count is incremented by in __ldsem_wake_readers() 86 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 88 if (count > 0) in __ldsem_wake_readers() 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 107 * Only wake this writer if the active part of the count can be in writer_trylock() 110 long count = atomic_long_add_return(LDSEM_ACTIVE_BIAS, &sem->count); in writer_trylock() local 112 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock() [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/tigerlake/ |
| H A D | floating-point.json | 12 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 16 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 21 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 25 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 34 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 39 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 48 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 52 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/rocketlake/ |
| H A D | floating-point.json | 12 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 16 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 21 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 25 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 34 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 39 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 48 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 52 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/icelake/ |
| H A D | floating-point.json | 12 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 16 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 21 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 25 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 34 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 39 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 48 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 52 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/icelakex/ |
| H A D | floating-point.json | 12 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 16 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 21 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 25 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 34 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 39 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 48 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 52 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/lib/ |
| H A D | lockref.c | 36 * lockref_get - Increments reference count unconditionally 40 * to the object, so you know the count cannot be zero. 45 new.count++; in lockref_get() 51 lockref->count++; in lockref_get() 57 * lockref_get_not_zero - Increments count unless the count is 0 or dead 59 * Return: 1 if count updated successfully or 0 if count was zero 66 new.count++; in lockref_get_not_zero() 67 if (old.count < in lockref_get_not_zero() [all...] |
| H A D | percpu_counter.c | 70 fbc->count = amount; in percpu_counter_set() 95 s64 count; in percpu_counter_add_batch() local 98 count = this_cpu_read(*fbc->counters); in percpu_counter_add_batch() 100 if (unlikely(abs(count + amount) >= batch)) { in percpu_counter_add_batch() 106 count = __this_cpu_read(*fbc->counters); in percpu_counter_add_batch() 107 fbc->count += count + amount; in percpu_counter_add_batch() 108 __this_cpu_sub(*fbc->counters, count); in percpu_counter_add_batch() 112 } while (!this_cpu_try_cmpxchg(*fbc->counters, &count, count + amount)); in percpu_counter_add_batch() 122 s64 count; in percpu_counter_add_batch() local 126 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch() [all …]
|
| /linux/drivers/staging/media/av7110/ |
| H A D | av7110_ipack.c | 19 p->count = 0; in av7110_ipack_reset() 51 if (p->count < 10) in send_ipack() 54 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack() 55 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack() 63 if (ac3_off < p->count) in send_ipack() 65 p->count - ac3_off, &ai, 0); in send_ipack() 67 nframes = (p->count - off - 3 - ac3_off) / in send_ipack() 72 ac3_off += nframes * ai.framesize - p->count; in send_ipack() 76 p->func(p->buf, p->count, p->data); in send_ipack() 81 p->count = 9; in send_ipack() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_db_mgr.c | 58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm() 63 weight, dbm->count); in __fini_dbm() 69 dbm->count = 0; in __fini_dbm() 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) in xe_guc_db_mgr_init() argument 91 if (count == ~0) in xe_guc_db_mgr_init() 92 count = GUC_NUM_DOORBELLS; in xe_guc_db_mgr_init() 95 dbm_assert(dbm, count <= GUC_NUM_DOORBELLS); in xe_guc_db_mgr_init() 97 if (!count) in xe_guc_db_mgr_init() [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | pkey_sysfs.c | 47 * (i.e. off != 0 or count < key blob size) -EINVAL is returned. 50 loff_t off, size_t count) in pkey_protkey_aes_attr_read() argument 56 if (off != 0 || count < sizeof(protkeytoken)) in pkey_protkey_aes_attr_read() 59 if (count < 2 * sizeof(protkeytoken)) in pkey_protkey_aes_attr_read() 104 * (i.e. off != 0 or count < key blob size) -EINVAL is returned. 107 loff_t off, size_t count) in pkey_protkey_aes_xts_attr_read() argument 124 if (off != 0 || count < sizeof(*t) + protlen) in pkey_protkey_aes_xts_attr_read() 146 * (i.e. off != 0 or count < key blob size) -EINVAL is returned. 149 loff_t off, size_t count) in pkey_protkey_hmac_attr_read() argument 166 if (off != 0 || count < sizeof(*t) + protlen) in pkey_protkey_hmac_attr_read() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-counter | 31 What: /sys/bus/counter/devices/counterX/countY/count 35 Count data of Count Y represented as a string. 42 used to compare counter channels against a particular count -- 43 the compare count for channel Y is provided by this attribute. 49 Historical capture of the Count Y count data. 55 Count value ceiling for Count Y. This is the upper limit for the 62 Count value floor for Count Y. This is the lower limit for the 69 Count mode for channel Y. The ceiling and floor values for 70 Count Y are used by the count mode where required. The following 71 count modes are available: [all …]
|
| /linux/arch/parisc/lib/ |
| H A D | io.c | 16 * Read COUNT 8-bit bytes from port PORT into memory starting at 19 void insb (unsigned long port, void *dst, unsigned long count) in insb() argument 26 if (!count) in insb() 28 count--; in insb() 33 while (count >= 4) { in insb() 35 count -= 4; in insb() 44 while (count) { in insb() 45 --count; in insb() 53 * Read COUNT 16-bit words from port PORT into memory starting at 59 void insw (unsigned long port, void *dst, unsigned long count) in insw() argument [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | io.h | 68 unsigned int count) \ 71 if (count) { \ 77 } while (--count); \ 85 unsigned int count) \ 88 if (count) { \ 93 } while (--count); \ 101 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 102 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 103 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 108 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument [all …]
|
| /linux/tools/perf/pmu-events/arch/riscv/andes/ax45/ |
| H A D | instructions.json | 5 "BriefDescription": "Cycle count" 10 "BriefDescription": "Retired instruction count" 15 "BriefDescription": "Integer load instruction count" 20 "BriefDescription": "Integer store instruction count" 25 "BriefDescription": "Atomic instruction count" 30 "BriefDescription": "System instruction count" 35 "BriefDescription": "Integer computational instruction count" 40 "BriefDescription": "Conditional branch instruction count" 45 "BriefDescription": "Taken conditional branch instruction count" 50 "BriefDescription": "JAL instruction count" [all …]
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_sysfs.c | 29 int count = 0; in reboot_show() local 31 count += sysfs_emit_at(buf, count, in reboot_show() 33 count += sysfs_emit_at(buf, count, " [at-shutdown]\n"); in reboot_show() 34 return count; in reboot_show() 39 const char *buf, size_t count) in reboot_store() argument 95 count = -EINVAL; in reboot_store() 105 count = ret; in reboot_store() 108 return count; in reboot_store() 120 int count = 0; in version_show() local 134 count = ret; in version_show() [all …]
|
| /linux/arch/arm64/lib/ |
| H A D | memset.S | 31 count .req x2 label 53 cmp count, #15 56 tbz count, #3, 1f 59 tbz count, #2, 2f 62 tbz count, #1, 3f 65 tbz count, #0, 4f 76 * The count is not less than 16, we can use stp to store the start 16 bytes, 82 sub count, count, tmp2 89 cmp count, #64 92 ands tmp1, count, #0x30 [all …]
|
| /linux/net/mac80211/ |
| H A D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, in mac80211_format_buffer() argument 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer() 36 size_t count, loff_t *ppos) \ 40 return mac80211_format_buffer(userbuf, count, ppos, \ 76 size_t count, in aqm_read() argument 109 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read() 115 size_t count, in aqm_write() argument 121 if (count >= sizeof(buf)) in aqm_write() 124 if (copy_from_user(buf, user_buf, count)) in aqm_write() 127 if (count && buf[count - 1] == '\n') in aqm_write() [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/emeraldrapids/ |
| H A D | floating-point.json | 77 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 81 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 86 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 90 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 95 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 99 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 104 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 108 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 113 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 117 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/sapphirerapids/ |
| H A D | floating-point.json | 77 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 81 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 86 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 90 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 95 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 99 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 104 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 108 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 113 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 117 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/graniterapids/ |
| H A D | floating-point.json | 77 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 81 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 86 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 90 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 95 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 99 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 104 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 108 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 113 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 117 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /linux/drivers/scsi/pcmcia/ |
| H A D | nsp_io.h | 70 unsigned long count) in nsp_multi_read_1() argument 72 insb(BaseAddr + Register, buf, count); in nsp_multi_read_1() 77 unsigned long count) in nsp_fifo8_read() argument 79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/ in nsp_fifo8_read() 80 nsp_multi_read_1(base, FIFODATA, buf, count); in nsp_fifo8_read() 89 unsigned long count) in nsp_multi_read_2() argument 91 insw(BaseAddr + Register, buf, count); in nsp_multi_read_2() 96 unsigned long count) in nsp_fifo16_read() argument 98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*2", buf, count); in nsp_fifo16_read() 99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read() [all …]
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-debugfs.c | 15 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument 28 if (count < strlen(buf)) { in xgbe_common_read() 33 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read() 39 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument 49 if (count >= sizeof(workarea)) in xgbe_common_write() 53 buffer, count); in xgbe_common_write() 66 size_t count, loff_t *ppos) in xgmac_reg_addr_read() argument 70 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read() 75 size_t count, loff_t *ppos) in xgmac_reg_addr_write() argument 79 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write() [all …]
|