/drivers/media/tuners/ |
D | tuner-types.c | 73 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 89 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges), 105 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges), 122 .count = ARRAY_SIZE(tuner_philips_secam_ranges), 139 .count = ARRAY_SIZE(tuner_philips_pal_ranges), 156 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 172 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges), 188 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges), 204 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 215 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), [all …]
|
/drivers/pci/hotplug/ |
D | ibmphp_pci.c | 361 int count; in configure_device() local 374 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device() 389 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 390 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() 392 if (!bar[count]) /* This BAR is not implemented */ in configure_device() 395 debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device() 397 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device() 401 len[count] = bar[count] & 0xFFFFFFFC; in configure_device() 402 len[count] = ~len[count] + 1; in configure_device() 404 debug("len[count] in IO %x, count %d\n", len[count], count); in configure_device() [all …]
|
/drivers/platform/chrome/ |
D | cros_ec_sysfs.c | 44 int count = 0; in show_ec_reboot() local 46 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot() 48 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot() 50 return count; in show_ec_reboot() 55 const char *buf, size_t count) in store_ec_reboot() argument 111 count = -EINVAL; in store_ec_reboot() 121 count = ret; in store_ec_reboot() 126 count = -EINVAL; in store_ec_reboot() 130 return count; in store_ec_reboot() 142 int count = 0; in show_ec_version() local [all …]
|
/drivers/media/pci/ttpci/ |
D | av7110_ipack.c | 20 p->count = 0; in av7110_ipack_reset() 56 if (p->count < 10) in send_ipack() 59 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack() 60 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack() 68 if (ac3_off < p->count) in send_ipack() 70 p->count - ac3_off, &ai, 0); in send_ipack() 72 nframes = (p->count - off - 3 - ac3_off) / in send_ipack() 77 ac3_off += nframes * ai.framesize - p->count; in send_ipack() 81 p->func(p->buf, p->count, p->data); in send_ipack() 86 p->count = 9; in send_ipack() [all …]
|
/drivers/scsi/pcmcia/ |
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 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 99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read() 108 unsigned long count) in nsp_multi_read_4() argument 110 insl(BaseAddr + Register, buf, count); in nsp_multi_read_4() [all …]
|
/drivers/video/fbdev/ |
D | atafb_utils.h | 49 static inline void *fb_memclear_small(void *s, size_t count) in fb_memclear_small() argument 51 if (!count) in fb_memclear_small() 60 : "=a" (s), "=d" (count) in fb_memclear_small() 61 : "d" (0), "0" ((char *)s + count), "1" (count)); in fb_memclear_small() 69 : "=a" (s), "=d" (count) in fb_memclear_small() 70 : "d" (0), "0" (s), "1" (count) in fb_memclear_small() 78 static inline void *fb_memclear(void *s, size_t count) in fb_memclear() argument 80 if (!count) in fb_memclear() 83 if (count < 16) { in fb_memclear() 90 : "=a" (s), "=d" (count) in fb_memclear() [all …]
|
/drivers/tty/ |
D | tty_ldsem.c | 81 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); in ldsem_atomic_update() 91 long tmp = atomic_long_cmpxchg(&sem->count, *old, new); in ldsem_cmpxchg() 114 sem->count = LDSEM_UNLOCKED; in __init_ldsem() 125 long adjust, count; in __ldsem_wake_readers() local 132 count = ldsem_atomic_update(adjust, sem); in __ldsem_wake_readers() 134 if (count > 0) in __ldsem_wake_readers() 136 if (ldsem_cmpxchg(&count, count - adjust, sem)) in __ldsem_wake_readers() 155 long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); in writer_trylock() local 157 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock() 159 if (ldsem_cmpxchg(&count, count - LDSEM_ACTIVE_BIAS, sem)) in writer_trylock() [all …]
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_cfg.c | 28 .count = 1, 42 .count = 5, 47 .count = 3, 56 .count = 3, 64 .count = 2, 71 .count = 5, 90 .count = 3, 94 .count = 3, 112 .count = 1, 126 .count = 5, [all …]
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | sysfs.c | 38 static int get_integer(const char *buf, size_t count) in get_integer() argument 43 if (count == 0) in get_integer() 45 count = min_t(size_t, count, 10); in get_integer() 46 memcpy(tmp, buf, count); in get_integer() 52 static int get_boolean(const char *buf, size_t count) in get_boolean() argument 54 if (count != 0) { in get_boolean() 59 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean() 61 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean() 63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean() 65 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean() [all …]
|
/drivers/acpi/acpica/ |
D | nsprepkg.c | 56 union acpi_operand_object **elements, u32 count); 67 union acpi_operand_object **elements, u32 count); 93 u32 count; in acpi_ns_check_package() local 105 return_object->package.count)); in acpi_ns_check_package() 117 count = return_object->package.count; in acpi_ns_check_package() 123 if (!count) { in acpi_ns_check_package() 144 status = acpi_ns_custom_package(info, elements, count); in acpi_ns_check_package() 156 if (count < expected_count) { in acpi_ns_check_package() 158 } else if (count > expected_count) { in acpi_ns_check_package() 162 info->full_pathname, count, in acpi_ns_check_package() [all …]
|
/drivers/gpu/drm/savage/ |
D | savage_state.c | 117 if(start <= reg && start+count > reg) \ 120 if(start <= reg && start+count > reg) { \ 129 unsigned int start, unsigned int count, in savage_verify_state_s3d() argument 133 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) { in savage_verify_state_s3d() 135 start, start + count - 1); in savage_verify_state_s3d() 146 start + count > SAVAGE_TEXPALADDR_S3D) { in savage_verify_state_s3d() 159 unsigned int start, unsigned int count, in savage_verify_state_s4() argument 165 start + count - 1 > SAVAGE_TEXBLENDCOLOR_S4) { in savage_verify_state_s4() 167 start, start + count - 1); in savage_verify_state_s4() 178 start + count > SAVAGE_TEXPALADDR_S4) { in savage_verify_state_s4() [all …]
|
/drivers/gpu/drm/i915/selftests/ |
D | i915_gem_timeline.c | 131 unsigned long end_time, count; in bench_sync() local 146 count = 0; in bench_sync() 155 count++; in bench_sync() 159 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 160 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync() 164 count = 0; in bench_sync() 171 count++; in bench_sync() 174 kt = ktime_sub_ns(kt, (count * prng32_1M * 2) >> 20); in bench_sync() 176 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 180 end_time = count; in bench_sync() [all …]
|
D | intel_breadcrumbs.c | 34 const int count) in check_rbtree() argument 45 n = find_first_bit(bitmap, count); in check_rbtree() 62 n = find_next_bit(bitmap, count, n + 1); in check_rbtree() 71 const int count) in check_completion() argument 75 for (n = 0; n < count; n++) { in check_completion() 112 const int count = 4096; in igt_random_insert_remove() local 120 waiters = kvmalloc_array(count, sizeof(*waiters), GFP_KERNEL); in igt_random_insert_remove() 124 bitmap = kcalloc(DIV_ROUND_UP(count, BITS_PER_LONG), sizeof(*bitmap), in igt_random_insert_remove() 129 order = i915_random_order(count, &prng); in igt_random_insert_remove() 133 for (n = 0; n < count; n++) in igt_random_insert_remove() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-debugifc.c | 29 unsigned int count) in debugifc_count_whitespace() argument 34 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_whitespace() 46 unsigned int count) in debugifc_count_nonwhitespace() argument 51 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_nonwhitespace() 61 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, in debugifc_isolate_word() argument 72 scnt = debugifc_count_whitespace(buf,count); in debugifc_isolate_word() 73 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() 74 if (!count) goto done; in debugifc_isolate_word() 76 scnt = debugifc_count_nonwhitespace(buf,count); in debugifc_isolate_word() 80 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() [all …]
|
/drivers/misc/eeprom/ |
D | at24.c | 206 unsigned int offset, size_t count) in at24_eeprom_read_smbus() argument 214 if (count > io_limit) in at24_eeprom_read_smbus() 215 count = io_limit; in at24_eeprom_read_smbus() 218 if (count > I2C_SMBUS_BLOCK_MAX) in at24_eeprom_read_smbus() 219 count = I2C_SMBUS_BLOCK_MAX; in at24_eeprom_read_smbus() 231 count, buf); in at24_eeprom_read_smbus() 234 count, offset, status, jiffies); in at24_eeprom_read_smbus() 236 if (status == count) in at24_eeprom_read_smbus() 237 return count; in at24_eeprom_read_smbus() 246 unsigned int offset, size_t count) in at24_eeprom_read_i2c() argument [all …]
|
/drivers/misc/mic/cosm/ |
D | cosm_sysfs.c | 104 const char *buf, size_t count) in state_store() argument 128 count = rc; in state_store() 129 return count; in state_store() 161 const char *buf, size_t count) in heartbeat_enable_store() argument 179 ret = count; in heartbeat_enable_store() 204 const char *buf, size_t count) in cmdline_store() argument 214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); in cmdline_store() 216 count = -ENOMEM; in cmdline_store() 220 strncpy(cdev->cmdline, buf, count); in cmdline_store() 222 if (cdev->cmdline[count - 1] == '\n') in cmdline_store() [all …]
|
/drivers/net/ethernet/8390/ |
D | mac8390.c | 137 static void sane_block_input(struct net_device *dev, int count, 139 static void sane_block_output(struct net_device *dev, int count, 144 int from, int count); 146 const void *from, int count); 151 static void dayna_block_input(struct net_device *dev, int count, 153 static void dayna_block_output(struct net_device *dev, int count, 162 static void slow_sane_block_input(struct net_device *dev, int count, 164 static void slow_sane_block_output(struct net_device *dev, int count, 166 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count); 167 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count); [all …]
|
/drivers/s390/char/ |
D | sclp_tty.c | 76 if (tty->count > 1) in sclp_tty_close() 95 int count; in sclp_tty_write_room() local 98 count = 0; in sclp_tty_write_room() 100 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf); in sclp_tty_write_room() 102 count += NR_EMPTY_MSG_PER_SCCB; in sclp_tty_write_room() 104 return count; in sclp_tty_write_room() 135 int count; in __sclp_ttybuf_emit() local 140 count = sclp_tty_buffer_count++; in __sclp_ttybuf_emit() 142 if (count) in __sclp_ttybuf_emit() 172 static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail) in sclp_tty_write_string() argument [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-debugfs.c | 124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument 137 if (count < strlen(buf)) { in xgbe_common_read() 142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read() 148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument 158 if (count >= sizeof(workarea)) in xgbe_common_write() 162 buffer, count); in xgbe_common_write() 175 size_t count, loff_t *ppos) in xgmac_reg_addr_read() argument 179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read() 184 size_t count, loff_t *ppos) in xgmac_reg_addr_write() argument 188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write() [all …]
|
/drivers/isdn/hisax/ |
D | hscx_irq.c | 53 hscx_empty_fifo(struct BCState *bcs, int count) in hscx_empty_fifo() argument 61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in hscx_empty_fifo() 69 bcs->hw.hscx.rcvidx += count; in hscx_empty_fifo() 70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_empty_fifo() 76 bcs->hw.hscx.hscx ? 'B' : 'A', count); in hscx_empty_fifo() 77 QuickHex(t, ptr, count); in hscx_empty_fifo() 86 int more, count; in hscx_fill_fifo() local 101 count = fifo_size; in hscx_fill_fifo() 103 count = bcs->tx_skb->len; in hscx_fill_fifo() 107 skb_pull(bcs->tx_skb, count); in hscx_fill_fifo() [all …]
|
D | jade_irq.c | 43 jade_empty_fifo(struct BCState *bcs, int count) in jade_empty_fifo() argument 51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in jade_empty_fifo() 59 bcs->hw.hscx.rcvidx += count; in jade_empty_fifo() 60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in jade_empty_fifo() 66 bcs->hw.hscx.hscx ? 'B' : 'A', count); in jade_empty_fifo() 67 QuickHex(t, ptr, count); in jade_empty_fifo() 76 int more, count; in jade_fill_fifo() local 91 count = fifo_size; in jade_fill_fifo() 93 count = bcs->tx_skb->len; in jade_fill_fifo() 97 skb_pull(bcs->tx_skb, count); in jade_fill_fifo() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | gid.c | 45 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids() 52 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids() 56 int mlx5_core_reserve_gids(struct mlx5_core_dev *dev, unsigned int count) in mlx5_core_reserve_gids() argument 62 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids() 64 count); in mlx5_core_reserve_gids() 67 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids() 68 mlx5_core_warn(dev, "Unable to reserve %d more GIDs\n", count); in mlx5_core_reserve_gids() 72 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids() 73 dev->roce.reserved_gids.count += count; in mlx5_core_reserve_gids() 75 dev->roce.reserved_gids.count, in mlx5_core_reserve_gids() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds28e04.c | 62 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument 67 if ((off + count) > size) in w1_f1C_fix_count() 70 return count; in w1_f1C_fix_count() 118 loff_t off, size_t count) in eeprom_read() argument 124 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read() 125 if (count == 0) in eeprom_read() 132 max_page = (off + count - 1) >> W1_PAGE_BITS; in eeprom_read() 135 count = -EIO; in eeprom_read() 139 memcpy(buf, &data->memory[off], count); in eeprom_read() 141 count = w1_f1C_read(sl, off, count, buf); in eeprom_read() [all …]
|
/drivers/oprofile/ |
D | oprofile_files.c | 31 size_t count, loff_t *offset) in timeout_read() argument 34 buf, count, offset); in timeout_read() 39 size_t count, loff_t *offset) in timeout_write() argument 47 retval = oprofilefs_ulong_from_user(&val, buf, count); in timeout_write() 55 return count; in timeout_write() 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read() argument 70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, in depth_read() 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write() argument 86 retval = oprofilefs_ulong_from_user(&val, buf, count); in depth_write() 94 return count; in depth_write() [all …]
|
/drivers/video/fbdev/core/ |
D | fb_sys_fops.c | 16 ssize_t fb_sys_read(struct fb_info *info, char __user *buf, size_t count, in fb_sys_read() argument 35 if (count >= total_size) in fb_sys_read() 36 count = total_size; in fb_sys_read() 38 if (count + p > total_size) in fb_sys_read() 39 count = total_size - p; in fb_sys_read() 46 if (copy_to_user(buf, src, count)) in fb_sys_read() 50 *ppos += count; in fb_sys_read() 52 return (err) ? err : count; in fb_sys_read() 57 size_t count, loff_t *ppos) in fb_sys_write() argument 75 if (count > total_size) { in fb_sys_write() [all …]
|