/linux-master/drivers/ata/pata_parport/ |
H A D | dstr.c | 115 static void dstr_read_block(struct pi_adapter *pi, char *buf, int count) argument 128 for (k = 0; k < count; k++) { 136 for (k = 0; k < count; k++) { 145 for (k = 0; k < count; k++) 151 for (k = 0; k < count / 2; k++) 157 for (k = 0; k < count / 4; k++) 164 static void dstr_write_block(struct pi_adapter *pi, char *buf, int count) argument 178 for (k = 0; k < count; k++) { 187 for (k = 0; k < count; k++) 193 for (k = 0; k < count / [all...] |
H A D | comm.c | 99 static void comm_read_block(struct pi_adapter *pi, char *buf, int count) argument 106 for (i = 0; i < count; i++) { 114 for (i = 0; i < count; i++) { 123 for (i = 0; i < count; i++) 129 for (i = 0; i < count / 2; i++) 135 for (i = 0; i < count / 4; i++) 143 static void comm_write_block(struct pi_adapter *pi, char *buf, int count) argument 151 for (k = 0; k < count; k++) { 160 for (k = 0; k < count; k++) 165 for (k = 0; k < count / [all...] |
/linux-master/lib/crypto/mpi/ |
H A D | mpi-bit.c | 158 void mpi_rshift_limbs(MPI a, unsigned int count) argument 164 if (count >= n) { 169 for (i = 0; i < n - count; i++) 170 ap[i] = ap[i+count]; 172 a->nlimbs -= count; 251 void mpi_lshift_limbs(MPI a, unsigned int count) argument 257 if (!count || !n) 260 RESIZE_IF_NEEDED(a, n+count); 264 ap[i+count] = ap[i]; 265 for (i = 0; i < count; [all...] |
/linux-master/drivers/cpufreq/ |
H A D | cpufreq_conservative.c | 150 const char *buf, size_t count) 161 return count; 165 const char *buf, size_t count) 177 return count; 181 const char *buf, size_t count) 194 return count; 198 const char *buf, size_t count) 212 return count; 219 return count; 223 size_t count) 149 sampling_down_factor_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument 164 up_threshold_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument 180 down_threshold_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument 197 ignore_nice_load_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument 222 freq_step_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument [all...] |
/linux-master/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_warpdrive.c | 121 u8 num_pds, count; local 168 for (count = 0; count < num_pds; count++) { 171 vol_pg0->PhysDisk[count].PhysDiskNum) || 176 vol_pg0->PhysDisk[count].PhysDiskNum); 189 raid_device->pd_handle[count] = le16_to_cpu(pd_pg0.DevHandle); 241 for (count = 0; count < num_pds; count [all...] |
/linux-master/drivers/misc/eeprom/ |
H A D | ee1004.c | 126 unsigned int offset, size_t count) 138 if (offset + count > EE1004_PAGE_SIZE) 139 count = EE1004_PAGE_SIZE - offset; 141 if (count > I2C_SMBUS_BLOCK_MAX) 142 count = I2C_SMBUS_BLOCK_MAX; 144 return i2c_smbus_read_i2c_block_data_or_emulated(client, offset, count, buf); 149 char *buf, loff_t off, size_t count) 152 size_t requested = count; 161 while (count) { 162 ret = ee1004_eeprom_read(client, buf, off, count); 125 ee1004_eeprom_read(struct i2c_client *client, char *buf, unsigned int offset, size_t count) argument 147 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument [all...] |
/linux-master/drivers/media/rc/ |
H A D | rc-core-priv.h | 70 unsigned count; member in struct:ir_raw_event_ctrl::nec_dec 80 unsigned count; member in struct:ir_raw_event_ctrl::rc5_dec 90 unsigned count; member in struct:ir_raw_event_ctrl::rc6_dec 98 unsigned count; member in struct:ir_raw_event_ctrl::sony_dec 106 unsigned count; member in struct:ir_raw_event_ctrl::jvc_dec 114 unsigned count; member in struct:ir_raw_event_ctrl::sanyo_dec 121 unsigned count; member in struct:ir_raw_event_ctrl::sharp_dec 134 unsigned count; member in struct:ir_raw_event_ctrl::mce_kbd_dec 141 unsigned count; member in struct:ir_raw_event_ctrl::xmp_dec 148 int count; member in struct:ir_raw_event_ctrl::imon_dec 157 unsigned int count; member in struct:ir_raw_event_ctrl::rcmm_dec [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | dma.h | 39 * - transfer count loaded to registers is 1 less than actual count 70 * Transfer count (_not # bytes_) is limited to 64K, represented as actual 71 * count - 1 : 64K => 0xFFFF, 1 => 0x0000. Thus, count is always 1 or more, 160 #define DMA_CNT_0 0x01 /* DMA count registers */ 315 * than the initial word count"! This is taken into account. 317 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7. 319 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) argument 321 count 346 unsigned short count; local [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_vblank_work.c | 49 u64 count = atomic64_read(&vblank->count); local 55 if (!drm_vblank_passed(count, work->count)) 90 * @count: target vblank count 93 * Schedule @work for execution once the crtc vblank count reaches @count. 95 * If the crtc vblank count has already reached @count an 109 drm_vblank_work_schedule(struct drm_vblank_work *work, u64 count, bool nextonmiss) argument [all...] |
/linux-master/drivers/vfio/cdx/ |
H A D | intr.c | 103 unsigned int start, unsigned int count, 108 if (start >= vdev->msi_count || start + count > vdev->msi_count) 111 for (i = 0, j = start; i < count && !ret; i++, j++) { 146 unsigned int count, u32 flags, 152 if (start + count > cdx_dev->num_msi) 155 if (!count && (flags & VFIO_IRQ_SET_DATA_NONE)) { 165 return vfio_cdx_msi_set_block(vdev, start, count, 171 ret = vfio_cdx_msi_set_block(vdev, start, count, fds); 178 for (i = start; i < start + count; i++) { 196 unsigned int start, unsigned int count, 102 vfio_cdx_msi_set_block(struct vfio_cdx_device *vdev, unsigned int start, unsigned int count, int32_t *fds) argument 144 vfio_cdx_set_msi_trigger(struct vfio_cdx_device *vdev, unsigned int index, unsigned int start, unsigned int count, u32 flags, void *data) argument 194 vfio_cdx_set_irqs_ioctl(struct vfio_cdx_device *vdev, u32 flags, unsigned int index, unsigned int start, unsigned int count, void *data) argument [all...] |
/linux-master/drivers/tty/serial/ |
H A D | tegra-tcu.c | 52 unsigned int count) 56 value |= TCU_MBOX_NUM_BYTES(count); 63 unsigned int count) 69 while (i < count) { 96 unsigned int count; local 99 count = kfifo_out_linear_ptr(&tport->xmit_fifo, &tail, 101 if (!count) 104 tegra_tcu_write(tcu, tail, count); 105 uart_xmit_advance(port, count); 149 unsigned int count) 51 tegra_tcu_write_one(struct tegra_tcu *tcu, u32 value, unsigned int count) argument 62 tegra_tcu_write(struct tegra_tcu *tcu, const char *s, unsigned int count) argument 148 tegra_tcu_console_write(struct console *cons, const char *s, unsigned int count) argument [all...] |
H A D | suncore.c | 28 int sunserial_register_minors(struct uart_driver *drv, int count) argument 33 drv->nr += count; 35 if (drv->nr == count) 38 sunserial_current_minor += count; 45 void sunserial_unregister_minors(struct uart_driver *drv, int count) argument 47 drv->nr -= count; 48 sunserial_current_minor -= count;
|
/linux-master/drivers/usb/host/ |
H A D | ehci-sysfs.c | 16 int count = PAGE_SIZE; local 24 n = scnprintf(ptr, count, "%d\n", index + 1); 26 count -= n; 39 const char *buf, size_t count) 60 return count; 83 const char *buf, size_t count) 140 ret = count; 37 companion_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 81 uframe_periodic_max_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
/linux-master/drivers/media/usb/as102/ |
H A D | as102_fw.c | 44 int count = 0; local 56 switch (count) { 76 addr[(count - 4)] = dst; 78 data[(count - 4)] = dst; 81 data[(count - 4)] = dst; 84 count++; 88 return (count * 2) + 2;
|
/linux-master/drivers/crypto/ |
H A D | padlock-aes.c | 195 struct cword *control_word, int count) 199 : "d"(control_word), "b"(key), "c"(count)); 203 u8 *iv, struct cword *control_word, int count) 207 : "d" (control_word), "b" (key), "c" (count)); 212 struct cword *cword, int count) 221 memcpy(tmp, in, count * AES_BLOCK_SIZE); 222 rep_xcrypt_ecb(tmp, out, key, cword, count); 226 u8 *iv, struct cword *cword, int count) 235 memcpy(tmp, in, count * AES_BLOCK_SIZE); 236 return rep_xcrypt_cbc(tmp, out, key, iv, cword, count); 194 rep_xcrypt_ecb(const u8 *input, u8 *output, void *key, struct cword *control_word, int count) argument 202 rep_xcrypt_cbc(const u8 *input, u8 *output, void *key, u8 *iv, struct cword *control_word, int count) argument 211 ecb_crypt_copy(const u8 *in, u8 *out, u32 *key, struct cword *cword, int count) argument 225 cbc_crypt_copy(const u8 *in, u8 *out, u32 *key, u8 *iv, struct cword *cword, int count) argument 239 ecb_crypt(const u8 *in, u8 *out, u32 *key, struct cword *cword, int count) argument 253 cbc_crypt(const u8 *in, u8 *out, u32 *key, u8 *iv, struct cword *cword, int count) argument 263 padlock_xcrypt_ecb(const u8 *input, u8 *output, void *key, void *control_word, u32 count) argument 285 padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key, u8 *iv, void *control_word, u32 count) argument [all...] |
/linux-master/drivers/firmware/efi/ |
H A D | capsule.c | 120 * to map @count pages? 122 static inline unsigned int sg_pages_num(unsigned int count) argument 124 return DIV_ROUND_UP(count, SGLIST_PER_PAGE); 220 unsigned int count, sg_count; local 230 count = DIV_ROUND_UP(imagesize, PAGE_SIZE); 231 sg_count = sg_pages_num(count); 250 for (j = 0; j < SGLIST_PER_PAGE && count > 0; j++) { 258 count--;
|
/linux-master/sound/firewire/digi00x/ |
H A D | digi00x-hwdep.c | 19 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, argument 44 count = min_t(long, count, sizeof(event.lock_status)); 51 count = min_t(long, count, sizeof(event.digi00x_message)); 56 if (copy_to_user(buf, &event, count)) 59 return count;
|
/linux-master/sound/firewire/dice/ |
H A D | dice-hwdep.c | 12 long count, loff_t *offset) 36 count = min_t(long, count, sizeof(event.lock_status)); 43 count = min_t(long, count, sizeof(event.dice_notification)); 48 if (copy_to_user(buf, &event, count)) 51 return count; 11 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, loff_t *offset) argument
|
/linux-master/drivers/usb/serial/ |
H A D | omninet.c | 36 void *buf, size_t count); 156 void *buf, size_t count) 161 count = min_t(size_t, count, OMNINET_PAYLOADSIZE); 163 count = kfifo_out_locked(&port->write_fifo, buf + OMNINET_HEADERLEN, 164 count, &port->lock); 167 header->oh_len = count; 155 omninet_prepare_write_buffer(struct usb_serial_port *port, void *buf, size_t count) argument
|
/linux-master/arch/powerpc/crypto/ |
H A D | sha1-spe-glue.c | 51 int count = sizeof(struct sha1_state) >> 2; local 56 do { *ptr++ = 0; } while (--count); 63 const unsigned int offset = sctx->count & 0x3f; 69 sctx->count += len; 74 sctx->count += len; 106 const unsigned int offset = sctx->count & 0x3f; 125 *pbits = cpu_to_be64(sctx->count << 3);
|
/linux-master/arch/x86/kernel/ |
H A D | kdebugfs.c | 30 size_t count, loff_t *ppos) 44 if (count > node->len - pos) 45 count = node->len - pos; 53 p = memremap(pa, count, MEMREMAP_WB); 57 remain = copy_to_user(user_buf, p, count); 64 *ppos = pos + count; 66 return count; 29 setup_data_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
|
/linux-master/drivers/md/bcache/ |
H A D | io.c | 66 * we shouldn't count failed REQ_RAHEAD bio to dc->io_errors. 93 unsigned int count = atomic_inc_return(&ca->io_count); local 95 while (count > ca->set->error_decay) { 97 unsigned int old = count; 98 unsigned int new = count - ca->set->error_decay; 101 * First we subtract refresh from count; each time we 105 count = atomic_cmpxchg(&ca->io_count, old, new); 107 if (count == old) { 108 count = new;
|
/linux-master/lib/zstd/compress/ |
H A D | fse_compress.c | 116 /* Case for no low prob count symbols. Lay down 8 bytes at a time 290 { int count = normalizedCounter[symbol++]; local 292 remaining -= count < 0 ? -count : count; 293 count++; /* +1 for extra accuracy */ 294 if (count>=threshold) 295 count += max; /* [0..max[ [max..threshold[ (...) [threshold+max 2*threshold[ */ 296 bitStream += count << bitCount; 298 bitCount -= (count<ma 387 FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProbCount) argument 473 FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, const unsigned* count, size_t total, unsigned maxSymbolValue, unsigned useLowProbCount) argument [all...] |
/linux-master/sound/firewire/fireface/ |
H A D | ff-hwdep.c | 26 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, argument 44 if (ff->dev_lock_changed && count >= sizeof(struct snd_firewire_event_lock_status)) { 56 count = sizeof(ev); 60 count = ff->spec->protocol->copy_msg_to_user(ff, buf, count); 65 count = 0; 68 return count;
|
/linux-master/drivers/watchdog/ |
H A D | watchdog_pretimeout.c | 54 int count = 0; local 59 count += sysfs_emit_at(buf, count, "%s\n", priv->gov->name); 63 return count; 68 int count = 0; local 72 count = sysfs_emit(buf, "%s\n", wdd->gov->name); 75 return count;
|