Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 3344) sorted by relevance

12345678910>>...134

/drivers/media/tuners/
Dtuner-types.c74 .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/
Dibmphp_pci.c342 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/
Dmdp5_cfg.c20 .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 = 5,
[all …]
/drivers/tty/
Dtty_ldsem.c67 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/deprecated/saa7146/av7110/
Dav7110_ipack.c20 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/
Dnsp_io.h70 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/
Datafb_utils.h49 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/platform/chrome/
Dcros_ec_sysfs.c28 int count = 0; in reboot_show() local
30 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show()
32 count += scnprintf(buf + count, PAGE_SIZE - count, 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 …]
/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c25 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/
Dnsprepkg.c22 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/gpu/drm/savage/
Dsavage_state.c124 if(start <= reg && start+count > reg) \
127 if(start <= reg && start+count > reg) { \
136 unsigned int start, unsigned int count, in savage_verify_state_s3d() argument
140 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) { in savage_verify_state_s3d()
142 start, start + count - 1); in savage_verify_state_s3d()
153 start + count > SAVAGE_TEXPALADDR_S3D) { in savage_verify_state_s3d()
166 unsigned int start, unsigned int count, in savage_verify_state_s4() argument
172 start + count - 1 > SAVAGE_TEXBLENDCOLOR_S4) { in savage_verify_state_s4()
174 start, start + count - 1); in savage_verify_state_s4()
185 start + count > SAVAGE_TEXPALADDR_S4) { in savage_verify_state_s4()
[all …]
/drivers/acpi/
Dfan_attr.c22 int count; in show_state() local
25 count = scnprintf(buf, PAGE_SIZE, "not-defined:"); in show_state()
27 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control); in show_state()
30 count += scnprintf(&buf[count], PAGE_SIZE - count, "not-defined:"); in show_state()
32 count += scnprintf(&buf[count], PAGE_SIZE - count, "%lld:", fps->trip_point); in show_state()
35 count += scnprintf(&buf[count], PAGE_SIZE - count, "not-defined:"); in show_state()
37 count += scnprintf(&buf[count], PAGE_SIZE - count, "%lld:", fps->speed); in show_state()
40 count += scnprintf(&buf[count], PAGE_SIZE - count, "not-defined:"); in show_state()
42 count += scnprintf(&buf[count], PAGE_SIZE - count, "%lld:", fps->noise_level * 100); in show_state()
45 count += scnprintf(&buf[count], PAGE_SIZE - count, "not-defined\n"); in show_state()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c19 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/
Dxgbe-debugfs.c124 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/
Dsclp_tty.c75 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 unsigned char *str, int count, int may_fail) in sclp_tty_write_string() argument
[all …]
/drivers/net/ethernet/8390/
Dmac8390.c137 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,
159 static void slow_sane_block_input(struct net_device *dev, int count,
161 static void slow_sane_block_output(struct net_device *dev, int count,
163 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count);
164 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count);
[all …]
/drivers/s390/cio/
Dqdio_main.c117 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/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c45 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/
Dvector.c48 vector->count = 0; in dal_vector_construct()
56 uint32_t count, in dal_vector_presized_costruct() argument
64 if (!struct_size || !count) { in dal_vector_presized_costruct()
70 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
79 for (i = 0; i < count; ++i) in dal_vector_presized_costruct()
86 vector->capacity = count; in dal_vector_presized_costruct()
88 vector->count = count; in dal_vector_presized_costruct()
134 vector->count = 0; in dal_vector_destruct()
151 return vector->count; in dal_vector_get_count()
158 if (vector->container == NULL || index >= vector->count) in dal_vector_at_index()
[all …]
/drivers/staging/media/meson/vdec/
Dcodec_vp9.c1481 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()
1656 den = count[coef_count_node_start] + in adapt_coef_probs()
1657 count[coef_count_node_start + 1]; in adapt_coef_probs()
[all …]
/drivers/w1/slaves/
Dw1_ds28e04.c60 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 …]
Dw1_ds2430.c47 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 …]
/drivers/md/persistent-data/
Ddm-btree-spine.c126 s->count = 0; in init_ro_spine()
135 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/
Ddebugfs.c26 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 …]
/drivers/video/fbdev/core/
Dfb_sys_fops.c16 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 …]

12345678910>>...134