| /drivers/pci/hotplug/ |
| A D | ibmphp_pci.c | 355 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device() 383 len[count] = ~len[count] + 1; in configure_device() 395 io[count]->len = len[count]; in configure_device() 398 func->io[count] = io[count]; in configure_device() 420 len[count] = ~len[count] + 1; in configure_device() 631 for (count = 0; address[count]; count++) { /* for 2 BARs */ in configure_bridge() 647 len[count] = ~len[count] + 1; in configure_bridge() 785 for (count = 0; address[count]; count++) { in configure_bridge() 1109 for (count = 0; address[count]; count++) { in scan_behind_bridge() 1215 for (count = 0; address[count]; count++) { /* for 6 BARs */ in unconfigure_boot_device() [all …]
|
| /drivers/media/tuners/ |
| A D | tuner-types.c | 74 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 157 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 205 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 268 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 395 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 405 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 419 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 429 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 455 .count = ARRAY_SIZE(tuner_lg_pal_ranges), 465 .count = ARRAY_SIZE(tuner_lg_pal_ranges), [all …]
|
| /drivers/gpu/drm/msm/disp/mdp5/ |
| A 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/ |
| A D | tty_ldsem.c | 86 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 114 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 170 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() 245 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) in down_write_failed() 298 long count; in __ldsem_down_read_nested() local 317 long count; in __ldsem_down_write_nested() local 348 long count = atomic_long_read(&sem->count); in ldsem_down_read_trylock() local 351 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_READ_BIAS)) { in ldsem_down_read_trylock() 374 long count; in ldsem_up_read() local [all …]
|
| /drivers/staging/media/av7110/ |
| A D | av7110_ipack.c | 19 p->count = 0; in av7110_ipack_reset() 81 p->count = 9; in send_ipack() 101 p->count = 7; in send_ipack() 122 p->count = 6; in write_ipack() 125 if (p->count + count < p->size) { in write_ipack() 126 memcpy(p->buf + p->count, data, count); in write_ipack() 127 p->count += count; in write_ipack() 247 return count; in av7110_ipack_instant_repack() 254 return count; in av7110_ipack_instant_repack() 379 c = count; in av7110_ipack_instant_repack() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_guc_db_mgr.c | 63 weight, dbm->count); in __fini_dbm() 69 dbm->count = 0; in __fini_dbm() 91 if (count == ~0) in xe_guc_db_mgr_init() 97 if (!count) in xe_guc_db_mgr_init() 103 dbm->count = count; in xe_guc_db_mgr_init() 110 dbm->count, str_plural(dbm->count)); in xe_guc_db_mgr_init() 120 dbm_assert(dbm, count); in dbm_reserve_chunk_locked() 125 if (!dbm->count) in dbm_reserve_chunk_locked() 130 if (used + count + spare > dbm->count) in dbm_reserve_chunk_locked() 134 index = bitmap_find_next_zero_area(dbm->bitmap, dbm->count, 0, count, 0); in dbm_reserve_chunk_locked() [all …]
|
| A D | xe_guc_id_mgr.c | 107 unsigned int count) in find_last_zero_area() argument 114 if (range < count) in find_last_zero_area() 116 found = rs + (range - count); in find_last_zero_area() 126 idm_assert(idm, count); in idm_reserve_chunk_locked() 153 bitmap_set(idm->bitmap, id, count); in idm_reserve_chunk_locked() 154 idm->used += count; in idm_reserve_chunk_locked() 162 idm_assert(idm, count); in idm_release_chunk_locked() 171 for (n = 0; n < count; n++) in idm_release_chunk_locked() 175 idm->used -= count; in idm_release_chunk_locked() 203 unsigned int count) in xe_guc_id_mgr_release_locked() argument [all …]
|
| /drivers/scsi/pcmcia/ |
| A D | nsp_io.h | 70 unsigned long count) in nsp_multi_read_1() argument 77 unsigned long count) in nsp_fifo8_read() argument 89 unsigned long count) in nsp_multi_read_2() argument 96 unsigned long count) in nsp_fifo16_read() argument 108 unsigned long count) in nsp_multi_read_4() argument 115 unsigned long count) in nsp_fifo32_read() argument 134 unsigned long count) in nsp_fifo8_write() argument 222 unsigned long count) in nsp_mmio_multi_read_4() argument 239 unsigned long count) in nsp_mmio_fifo32_read() argument 248 unsigned long count) in nsp_mmio_multi_write_4() argument [all …]
|
| /drivers/video/fbdev/ |
| A D | atafb_utils.h | 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() 80 if (!count) in fb_memclear() 83 if (count < 16) { in fb_memclear() 120 if (!count) in fb_memset255() 130 : "d" (-1), "0" ((char *)s+count), "1" (count)); in fb_memset255() 148 if (count < 16) { in fb_memmove() 180 if (count < 16) { in fb_memmove() 188 : "0" ((char *) d + count), "1" ((char *) s + count), "2" (count)); in fb_memmove() [all …]
|
| /drivers/platform/chrome/ |
| A D | cros_ec_sysfs.c | 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() 152 count += sysfs_emit_at(buf, count, in version_show() 165 count += sysfs_emit_at(buf, count, in version_show() 184 count += sysfs_emit_at(buf, count, in version_show() 190 count += sysfs_emit_at(buf, count, in version_show() 325 count += sysfs_emit_at(buf, count, " USB=%d", in usbpdmuxinfo_show() 327 count += sysfs_emit_at(buf, count, " DP=%d", in usbpdmuxinfo_show() 336 count += sysfs_emit_at(buf, count, " SAFE=%d", in usbpdmuxinfo_show() [all …]
|
| /drivers/s390/crypto/ |
| A D | pkey_sysfs.c | 192 off, count); in protkey_aes_128_read() 202 off, count); in protkey_aes_192_read() 212 off, count); in protkey_aes_256_read() 219 size_t count) in protkey_aes_128_xts_read() argument 222 off, count); in protkey_aes_128_xts_read() 229 size_t count) in protkey_aes_256_xts_read() argument 232 off, count); in protkey_aes_256_xts_read() 239 size_t count) in protkey_aes_xts_128_read() argument 249 size_t count) in protkey_aes_xts_256_read() argument 376 size_t count) in ccadata_aes_128_xts_read() argument [all …]
|
| /drivers/net/wireless/broadcom/b43legacy/ |
| A D | sysfs.c | 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() 43 if (count != 0) { in get_boolean() 69 ssize_t count = 0; in b43legacy_attr_interfmode_show() local 81 count = sysfs_emit(buf, in b43legacy_attr_interfmode_show() 93 return count; in b43legacy_attr_interfmode_show() 136 return err ? err : count; in b43legacy_attr_interfmode_store() 148 ssize_t count; in b43legacy_attr_preamble_show() local 162 return count; in b43legacy_attr_preamble_show() [all …]
|
| /drivers/acpi/acpica/ |
| A D | nsprepkg.c | 59 u32 count; in acpi_ns_check_package() local 83 count = return_object->package.count; in acpi_ns_check_package() 89 if (!count) { in acpi_ns_check_package() 221 count--; in acpi_ns_check_package() 249 count = expected_count; in acpi_ns_check_package() 289 count = 1; in acpi_ns_check_package() 309 if (count & 1) { in acpi_ns_check_package() 314 while (count > 0) { in acpi_ns_check_package() 340 count -= 2; in acpi_ns_check_package() 468 count - in acpi_ns_check_package_list() [all …]
|
| /drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-debugifc.c | 14 unsigned int count) in debugifc_count_whitespace() argument 31 unsigned int count) in debugifc_count_nonwhitespace() argument 59 if (!count) goto done; in debugifc_isolate_word() 82 count -= 2; in debugifc_parse_unsigned_number() 88 while (count--) { in debugifc_parse_unsigned_number() 106 if (kl != count) return 0; in debugifc_match_keyword() 175 unsigned int count) in pvr2_debugifc_do1cmd() argument 183 count -= scnt; buf += scnt; in pvr2_debugifc_do1cmd() 285 unsigned int count) in pvr2_debugifc_docmd() argument 290 while (count) { in pvr2_debugifc_docmd() [all …]
|
| /drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-debugfs.c | 28 if (count < strlen(buf)) { in xgbe_common_read() 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 75 size_t count, loff_t *ppos) in xgmac_reg_addr_write() argument 84 size_t count, loff_t *ppos) in xgmac_reg_value_read() argument 126 size_t count, loff_t *ppos) in xpcs_mmd_read() argument 143 size_t count, loff_t *ppos) in xpcs_reg_addr_read() argument 151 size_t count, loff_t *ppos) in xpcs_reg_addr_write() argument 160 size_t count, loff_t *ppos) in xpcs_reg_value_read() argument [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mld/ |
| A D | debugfs.c | 57 return count; in iwl_dbgfs_fw_dbg_clear_write() 61 size_t count) in iwl_dbgfs_fw_nmi_write() argument 73 return count; in iwl_dbgfs_fw_nmi_write() 77 size_t count) in iwl_dbgfs_fw_restart_write() argument 97 return count; in iwl_dbgfs_fw_restart_write() 101 size_t count) in iwl_dbgfs_send_echo_cmd_write() argument 129 size_t count) in iwl_dbgfs_he_sniffer_params_write() argument 180 return ret ?: count; in iwl_dbgfs_he_sniffer_params_write() 498 return ret ?: count; in iwl_dbgfs_inject_packet_write() 656 return count; in iwl_dbgfs_vif_low_latency_write() [all …]
|
| /drivers/net/ethernet/8390/ |
| A D | mac8390.c | 664 count--; in dayna_memcpy_fromcard() 670 count -= 2; in dayna_memcpy_fromcard() 673 if (count) in dayna_memcpy_fromcard() 688 count--; in dayna_memcpy_tocard() 710 hdr->count = swab16(hdr->count); in sane_get_8390_hdr() 751 hdr->count = (hdr->count & 0xFF) << 8 | (hdr->count >> 8); in dayna_get_8390_hdr() 793 hdr->count = (hdr->count&0xFF)<<8|(hdr->count>>8); in slow_sane_get_8390_hdr() 829 count++; in word_memcpy_tocard() 830 count /= 2; in word_memcpy_tocard() 841 count++; in word_memcpy_fromcard() [all …]
|
| /drivers/s390/cio/ |
| A D | qdio_main.c | 167 int count) in qdio_do_sqbs() argument 446 int count; in get_inbound_buffer_frontier() local 451 if (!count) in get_inbound_buffer_frontier() 457 count = get_buf_states(q, start, &state, count, 1); in get_inbound_buffer_frontier() 458 if (!count) in get_inbound_buffer_frontier() 507 int count; in qdio_inspect_input_queue() local 548 int count; in get_outbound_buffer_frontier() local 559 count = get_buf_states(q, start, &state, count, 0); in get_outbound_buffer_frontier() 611 int count; in qdio_inspect_output_queue() local 1090 irq_ptr->ccw->count = ciw->count; in qdio_establish() [all …]
|
| /drivers/s390/char/ |
| A 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() 103 return count; in sclp_tty_write_room() 134 int count; in __sclp_ttybuf_emit() local 141 if (count) in __sclp_ttybuf_emit() 179 if (count <= 0) in sclp_tty_write_string() 297 return count; in sclp_tty_chars_in_buffer() 375 count--; in sclp_switch_cases() 405 int count; in sclp_get_input() local [all …]
|
| /drivers/staging/media/meson/vdec/ |
| A D | codec_vp9.c | 1481 unsigned int *count, in adapt_coef_probs_cxt() argument 1543 unsigned int *count) in adapt_coef_probs() argument 1597 count, in adapt_coef_probs() 1704 count[start + 3]; in adapt_coef_probs() 1710 count[start + 3]; in adapt_coef_probs() 1761 count[start + H_PRED]; in adapt_coef_probs() 1779 count[start + V_PRED]; in adapt_coef_probs() 1842 count[start + 3]; in adapt_coef_probs() 1848 count[start + 3]; in adapt_coef_probs() 1963 count[start + 5]; in adapt_coef_probs() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A 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() 60 count); in mlx5_core_reserve_gids() 63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { 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() 78 WARN(count > dev->roce.reserved_gids.count, "Unreserving %u GIDs when only %u reserved", in mlx5_core_unreserve_gids() 79 count, dev->roce.reserved_gids.count); in mlx5_core_unreserve_gids() 82 dev->roce.reserved_gids.count -= count; in mlx5_core_unreserve_gids() 84 dev->roce.reserved_gids.count, in mlx5_core_unreserve_gids() [all …]
|
| /drivers/gpu/drm/amd/display/dc/basics/ |
| A D | vector.c | 48 vector->count = 0; in dal_vector_construct() 55 uint32_t count, in dal_vector_presized_costruct() argument 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() 174 vector->count -= 1; in dal_vector_remove_at_index() 218 if (vector->count && position < vector->count) in dal_vector_insert_at() 229 vector->count++; in dal_vector_insert_at() 245 uint32_t count; in dal_vector_clone() local 250 if (count == 0) in dal_vector_clone() [all …]
|
| /drivers/w1/slaves/ |
| A D | w1_ds28e04.c | 68 return count; in w1_f1C_fix_count() 122 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read() 123 if (count == 0) in eeprom_read() 133 count = -EIO; in eeprom_read() 139 count = w1_f1C_read(sl, off, count, buf); in eeprom_read() 145 return count; in eeprom_read() 233 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_write() 234 if (count == 0) in eeprom_write() 276 return count; in eeprom_write() 337 return count; in pio_write() [all …]
|
| /drivers/md/persistent-data/ |
| A D | dm-btree-spine.c | 127 s->count = 0; in init_ro_spine() 147 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() 168 BUG_ON(!s->count); in ro_node() 179 s->count = 0; in init_shadow_spine() 198 s->count--; in shadow_step() 203 if (!s->count) in shadow_step() 206 s->count++; in shadow_step() [all …]
|
| /drivers/video/fbdev/core/ |
| A D | fb_io_fops.c | 30 if (count >= total_size) in fb_io_read() 31 count = total_size; in fb_io_read() 36 buffer = kmalloc((count > PAGE_SIZE) ? PAGE_SIZE : count, in fb_io_read() 46 while (count) { in fb_io_read() 47 c = (count > PAGE_SIZE) ? PAGE_SIZE : count; in fb_io_read() 63 count -= c; in fb_io_read() 96 count = total_size; in fb_io_write() 106 buffer = kmalloc((count > PAGE_SIZE) ? PAGE_SIZE : count, in fb_io_write() 116 while (count) { in fb_io_write() 117 c = (count > PAGE_SIZE) ? PAGE_SIZE : count; in fb_io_write() [all …]
|