/drivers/media/tuners/ |
D | tuner-types.c | 74 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 90 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges), 106 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges), 123 .count = ARRAY_SIZE(tuner_philips_secam_ranges), 140 .count = ARRAY_SIZE(tuner_philips_pal_ranges), 157 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 173 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges), 189 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges), 205 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 216 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), [all …]
|
/drivers/pci/hotplug/ |
D | ibmphp_pci.c | 342 int count; in configure_device() local 355 for (count = 0; address[count]; count++) { /* for 6 BARs */ 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() 382 len[count] = bar[count] & 0xFFFFFFFC; in configure_device() 383 len[count] = ~len[count] + 1; in configure_device() 385 debug("len[count] in IO %x, count %d\n", len[count], count); in configure_device() [all …]
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_cfg.c | 20 .count = 1, 34 .count = 5, 39 .count = 3, 48 .count = 3, 56 .count = 2, 63 .count = 5, 82 .count = 3, 86 .count = 3, 109 .count = 1, 123 .count = 2, [all …]
|
/drivers/tty/ |
D | tty_ldsem.c | 67 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 78 long adjust, count; in __ldsem_wake_readers() local 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() 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() 114 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument 170 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() [all …]
|
/drivers/staging/media/av7110/ |
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/net/wireless/broadcom/b43legacy/ |
D | sysfs.c | 25 static int get_integer(const char *buf, size_t count) in get_integer() argument 30 if (count == 0) in get_integer() 32 count = min_t(size_t, count, 10); in get_integer() 33 memcpy(tmp, buf, count); in get_integer() 41 static int get_boolean(const char *buf, size_t count) in get_boolean() argument 43 if (count != 0) { in get_boolean() 48 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean() 50 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean() 52 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean() 54 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean() [all …]
|
/drivers/acpi/acpica/ |
D | nsprepkg.c | 22 union acpi_operand_object **elements, u32 count); 33 union acpi_operand_object **elements, u32 count); 59 u32 count; in acpi_ns_check_package() local 71 return_object->package.count)); in acpi_ns_check_package() 83 count = return_object->package.count; in acpi_ns_check_package() 89 if (!count) { in acpi_ns_check_package() 110 status = acpi_ns_custom_package(info, elements, count); in acpi_ns_check_package() 122 if (count < expected_count) { in acpi_ns_check_package() 124 } else if (count > expected_count) { in acpi_ns_check_package() 128 info->full_pathname, count, in acpi_ns_check_package() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-debugifc.c | 19 unsigned int count) in debugifc_count_whitespace() argument 24 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_whitespace() 36 unsigned int count) in debugifc_count_nonwhitespace() argument 41 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_nonwhitespace() 51 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, in debugifc_isolate_word() argument 62 scnt = debugifc_count_whitespace(buf,count); in debugifc_isolate_word() 63 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() 64 if (!count) goto done; in debugifc_isolate_word() 66 scnt = debugifc_count_nonwhitespace(buf,count); in debugifc_isolate_word() 70 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word() [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/s390/char/ |
D | sclp_tty.c | 75 if (tty->count > 1) in sclp_tty_close() 94 unsigned int count; in sclp_tty_write_room() local 97 count = 0; in sclp_tty_write_room() 99 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf); in sclp_tty_write_room() 101 count += NR_EMPTY_MSG_PER_SCCB; in sclp_tty_write_room() 103 return count; in sclp_tty_write_room() 134 int count; in __sclp_ttybuf_emit() local 139 count = sclp_tty_buffer_count++; in __sclp_ttybuf_emit() 141 if (count) in __sclp_ttybuf_emit() 171 static int sclp_tty_write_string(const u8 *str, int count, int may_fail) in sclp_tty_write_string() argument [all …]
|
/drivers/video/fbdev/core/ |
D | fb_io_fops.c | 7 ssize_t fb_io_read(struct fb_info *info, char __user *buf, size_t count, loff_t *ppos) in fb_io_read() argument 26 if (count >= total_size) in fb_io_read() 27 count = total_size; in fb_io_read() 29 if (count + p > total_size) in fb_io_read() 30 count = total_size - p; in fb_io_read() 32 buffer = kmalloc((count > PAGE_SIZE) ? PAGE_SIZE : count, in fb_io_read() 42 while (count) { in fb_io_read() 43 c = (count > PAGE_SIZE) ? PAGE_SIZE : count; in fb_io_read() 59 count -= c; in fb_io_read() 68 ssize_t fb_io_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) in fb_io_write() argument [all …]
|
/drivers/net/ethernet/8390/ |
D | mac8390.c | 135 static void sane_block_input(struct net_device *dev, int count, 137 static void sane_block_output(struct net_device *dev, int count, 142 int from, int count); 144 const void *from, int count); 149 static void dayna_block_input(struct net_device *dev, int count, 151 static void dayna_block_output(struct net_device *dev, int count, 157 static void slow_sane_block_input(struct net_device *dev, int count, 159 static void slow_sane_block_output(struct net_device *dev, int count, 161 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count); 162 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count); [all …]
|
/drivers/s390/cio/ |
D | qdio_main.c | 117 int start, int count, int auto_ack) in qdio_do_eqbs() argument 119 int tmp_count = count, tmp_start = start, nr = q->nr; in qdio_do_eqbs() 134 return count - tmp_count; in qdio_do_eqbs() 140 return count - tmp_count; in qdio_do_eqbs() 148 DBF_ERROR("%3d%3d%2d", count, tmp_count, nr); in qdio_do_eqbs() 150 q->first_to_check, count, q->irq_ptr->int_parm); in qdio_do_eqbs() 167 int count) in qdio_do_sqbs() argument 170 int tmp_count = count, tmp_start = start; in qdio_do_sqbs() 185 return count - tmp_count; in qdio_do_sqbs() 194 DBF_ERROR("%3d%3d%2d", count, tmp_count, nr); in qdio_do_sqbs() [all …]
|
/drivers/platform/chrome/ |
D | cros_ec_sysfs.c | 28 int count = 0; in reboot_show() local 30 count += sysfs_emit_at(buf, count, in reboot_show() 32 count += sysfs_emit_at(buf, count, " [at-shutdown]\n"); in reboot_show() 33 return count; in reboot_show() 38 const char *buf, size_t count) in reboot_store() argument 94 count = -EINVAL; in reboot_store() 104 count = ret; in reboot_store() 107 return count; in reboot_store() 119 int count = 0; in version_show() local 133 count = ret; in version_show() [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 58 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids() 60 count); in mlx5_core_reserve_gids() 63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids() 64 mlx5_core_warn(dev, "Unable to reserve %d more GIDs\n", count); in mlx5_core_reserve_gids() 68 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids() 69 dev->roce.reserved_gids.count += count; in mlx5_core_reserve_gids() 71 dev->roce.reserved_gids.count, in mlx5_core_reserve_gids() [all …]
|
/drivers/gpu/drm/amd/display/dc/basics/ |
D | vector.c | 48 vector->count = 0; in dal_vector_construct() 55 uint32_t count, in dal_vector_presized_costruct() argument 63 if (!struct_size || !count) { in dal_vector_presized_costruct() 69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct() 78 for (i = 0; i < count; ++i) in dal_vector_presized_costruct() 85 vector->capacity = count; in dal_vector_presized_costruct() 87 vector->count = count; in dal_vector_presized_costruct() 133 vector->count = 0; in dal_vector_destruct() 150 return vector->count; in dal_vector_get_count() 157 if (vector->container == NULL || index >= vector->count) in dal_vector_at_index() [all …]
|
/drivers/staging/media/meson/vdec/ |
D | codec_vp9.c | 1481 unsigned int *count, in adapt_coef_probs_cxt() argument 1495 const int n0 = count[coef_count_cxt_start]; in adapt_coef_probs_cxt() 1496 const int n1 = count[coef_count_cxt_start + 1]; in adapt_coef_probs_cxt() 1497 const int n2 = count[coef_count_cxt_start + 2]; in adapt_coef_probs_cxt() 1498 const int neob = count[coef_count_cxt_start + 3]; in adapt_coef_probs_cxt() 1499 const int nneob = count[coef_count_cxt_start + 4]; in adapt_coef_probs_cxt() 1543 unsigned int *count) in adapt_coef_probs() argument 1597 count, in adapt_coef_probs() 1655 den = count[coef_count_node_start] + in adapt_coef_probs() 1656 count[coef_count_node_start + 1]; in adapt_coef_probs() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds28e04.c | 60 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument 65 if ((off + count) > size) in w1_f1C_fix_count() 68 return count; in w1_f1C_fix_count() 116 loff_t off, size_t count) in eeprom_read() argument 122 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read() 123 if (count == 0) in eeprom_read() 130 max_page = (off + count - 1) >> W1_PAGE_BITS; in eeprom_read() 133 count = -EIO; in eeprom_read() 137 memcpy(buf, &data->memory[off], count); in eeprom_read() 139 count = w1_f1C_read(sl, off, count, buf); in eeprom_read() [all …]
|
D | w1_ds2430.c | 47 static inline size_t w1_f14_fix_count(loff_t off, size_t count, size_t size) in w1_f14_fix_count() argument 52 if ((off + count) > size) in w1_f14_fix_count() 55 return count; in w1_f14_fix_count() 65 static int w1_f14_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f14_readblock() argument 79 w1_read_block(sl->master, buf, count); in w1_f14_readblock() 85 w1_read_block(sl->master, cmp, count); in w1_f14_readblock() 87 if (!memcmp(cmp, buf, count)) in w1_f14_readblock() 99 loff_t off, size_t count) in eeprom_read() argument 102 int todo = count; in eeprom_read() 104 count = w1_f14_fix_count(off, count, W1_F14_EEPROM_SIZE); in eeprom_read() [all …]
|
D | w1_ds2433.c | 49 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) in w1_f23_fix_count() argument 54 if ((off + count) > size) in w1_f23_fix_count() 57 return count; in w1_f23_fix_count() 91 loff_t off, size_t count) in eeprom_read() argument 101 count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read() 102 if (!count) in eeprom_read() 110 max_page = (off + count - 1) >> W1_PAGE_BITS; in eeprom_read() 113 count = -EIO; in eeprom_read() 117 memcpy(buf, &data->memory[off], count); in eeprom_read() 123 count = -EIO; in eeprom_read() [all …]
|
D | w1_ds2805.c | 43 static inline size_t w1_f0d_fix_count(loff_t off, size_t count, size_t size) in w1_f0d_fix_count() argument 48 if ((off + count) > size) in w1_f0d_fix_count() 51 return count; in w1_f0d_fix_count() 61 static int w1_f0d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f0d_readblock() argument 76 w1_read_block(sl->master, buf, count); in w1_f0d_readblock() 82 w1_read_block(sl->master, cmp, count); in w1_f0d_readblock() 84 if (!memcmp(cmp, buf, count)) in w1_f0d_readblock() 96 char *buf, loff_t off, size_t count) in w1_f0d_read_bin() argument 99 int todo = count; in w1_f0d_read_bin() 101 count = w1_f0d_fix_count(off, count, W1_F0D_EEPROM_SIZE); in w1_f0d_read_bin() [all …]
|
/drivers/md/persistent-data/ |
D | dm-btree-spine.c | 127 s->count = 0; in init_ro_spine() 136 for (i = 0; i < s->count; i++) in exit_ro_spine() 144 if (s->count == 2) { in ro_step() 147 s->count--; in ro_step() 150 r = bn_read_lock(s->info, new_child, s->nodes + s->count); in ro_step() 152 s->count++; in ro_step() 159 BUG_ON(!s->count); in ro_pop() 160 --s->count; in ro_pop() 161 unlock_block(s->info, s->nodes[s->count]); in ro_pop() 168 BUG_ON(!s->count); in ro_node() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 26 size_t count, loff_t *ppos) in write_file_dummy() argument 34 size_t count, loff_t *ppos) in lbs_dev_info() argument 49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info() 56 const char __user *user_buf, size_t count, in lbs_sleepparams_write() argument 65 buf = memdup_user_nul(user_buf, min(count, len - 1)); in lbs_sleepparams_write() 83 ret = count; in lbs_sleepparams_write() 93 size_t count, loff_t *ppos) in lbs_sleepparams_read() argument 113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 121 const char __user *user_buf, size_t count, in lbs_host_sleep_write() argument 129 buf = memdup_user_nul(user_buf, min(count, len - 1)); in lbs_host_sleep_write() [all …]
|