/kernel/linux/linux-5.10/sound/usb/ |
H A D | mixer_us16x08.c | 28 0x01, /* input index (0x01/0x02 eq. left/right) or bus (0x01-0x08) */ 36 0x01, /* output index (0x01-0x08) */ 184 int index = ucontrol->id.index; in snd_us16x08_route_get() local 187 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get() 197 int index = ucontrol->id.index; in snd_us16x08_route_put() local 224 buf[13] = index + 1; in snd_us16x08_route_put() 229 elem->cached |= 1 << index; in snd_us16x08_route_put() 230 elem->cache_val[index] in snd_us16x08_route_put() 253 int index = ucontrol->id.index; snd_us16x08_master_get() local 267 int index = ucontrol->id.index; snd_us16x08_master_put() local 363 int index = ucontrol->id.index; snd_us16x08_channel_get() local 377 int index = ucontrol->id.index; snd_us16x08_channel_put() local 422 int index = ucontrol->id.index; snd_us16x08_comp_get() local 436 int index = ucontrol->id.index; snd_us16x08_comp_put() local 490 int index = ucontrol->id.index; snd_us16x08_eqswitch_get() local 506 int index = ucontrol->id.index; snd_us16x08_eqswitch_put() local 549 int index = ucontrol->id.index; snd_us16x08_eq_get() local 566 int index = ucontrol->id.index; snd_us16x08_eq_put() local 1042 add_new_ctl(struct usb_mixer_interface *mixer, const struct snd_kcontrol_new *ncontrol, int index, int val_type, int channels, const char *name, void *opt, bool do_private_free, struct usb_mixer_elem_info **elem_ret) add_new_ctl() argument [all...] |
/kernel/linux/linux-6.6/sound/usb/ |
H A D | mixer_us16x08.c | 28 0x01, /* input index (0x01/0x02 eq. left/right) or bus (0x01-0x08) */ 36 0x01, /* output index (0x01-0x08) */ 184 int index = ucontrol->id.index; in snd_us16x08_route_get() local 187 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get() 197 int index = ucontrol->id.index; in snd_us16x08_route_put() local 224 buf[13] = index + 1; in snd_us16x08_route_put() 229 elem->cached |= 1 << index; in snd_us16x08_route_put() 230 elem->cache_val[index] in snd_us16x08_route_put() 253 int index = ucontrol->id.index; snd_us16x08_master_get() local 267 int index = ucontrol->id.index; snd_us16x08_master_put() local 363 int index = ucontrol->id.index; snd_us16x08_channel_get() local 377 int index = ucontrol->id.index; snd_us16x08_channel_put() local 422 int index = ucontrol->id.index; snd_us16x08_comp_get() local 436 int index = ucontrol->id.index; snd_us16x08_comp_put() local 490 int index = ucontrol->id.index; snd_us16x08_eqswitch_get() local 506 int index = ucontrol->id.index; snd_us16x08_eqswitch_put() local 549 int index = ucontrol->id.index; snd_us16x08_eq_get() local 566 int index = ucontrol->id.index; snd_us16x08_eq_put() local 1042 add_new_ctl(struct usb_mixer_interface *mixer, const struct snd_kcontrol_new *ncontrol, int index, int val_type, int channels, const char *name, void *opt, bool do_private_free, struct usb_mixer_elem_info **elem_ret) add_new_ctl() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | MutableCodePointTrie.java | 41 index = new int[BMP_I_LIMIT]; in MutableCodePointTrie() 62 builder.index = new int[iCapacity]; in clone() 65 builder.index[i] = index[i]; in clone() 137 return index[i]; in get() 139 return data[index[i] + (c & CodePointTrie.SMALL_DATA_MASK)]; in get() 181 int trieValue2 = index[i]; in getRange() 199 int di = index[i] + (c & CodePointTrie.SMALL_DATA_MASK); in getRange() 307 index[i] = value; in setRange() 309 fillBlock(index[ in setRange() 399 private int[] index; global() field in MutableCodePointTrie 611 isStartOfSomeFastBlock(int dataOffset, int[] index, int fastILimit) isStartOfSomeFastBlock() argument 658 findOrAdd(int index, int count, int value) findOrAdd() argument 681 add(int index, int count, int value) add() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | MutableCodePointTrie.java | 41 index = new int[BMP_I_LIMIT]; in MutableCodePointTrie() 61 builder.index = new int[iCapacity]; in clone() 64 builder.index[i] = index[i]; in clone() 134 return index[i]; in get() 136 return data[index[i] + (c & CodePointTrie.SMALL_DATA_MASK)]; in get() 176 int trieValue2 = index[i]; in getRange() 194 int di = index[i] + (c & CodePointTrie.SMALL_DATA_MASK); in getRange() 300 index[i] = value; in setRange() 302 fillBlock(index[ in setRange() 391 private int[] index; global() field in MutableCodePointTrie 603 isStartOfSomeFastBlock(int dataOffset, int[] index, int fastILimit) isStartOfSomeFastBlock() argument 650 findOrAdd(int index, int count, int value) findOrAdd() argument 673 add(int index, int count, int value) add() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | bitset_utils.h | 81 void resetLaterBit(std::size_t index) in resetLaterBit() argument 83 ASSERT(index > mCurrentBit); in resetLaterBit() 84 mBitsCopy.reset(index); in resetLaterBit() 87 void setLaterBit(std::size_t index) in setLaterBit() argument 89 ASSERT(index > mCurrentBit); in setLaterBit() 90 mBitsCopy.set(index); in setLaterBit() 530 Iterator(const BitSetArray<N> &bitSetArray, std::size_t index); 575 // Get the index and offset, update current interator if within range in updateIteratorBit() 576 size_t index = pos >> kShiftForDivision; in updateIteratorBit() local 578 if (index in updateIteratorBit() 711 Iterator(const BitSetArray<N> &bitSetArray, std::size_t index) Iterator() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/ |
H A D | grid_adaptive_layout_algorithm.cpp | 93 for (int32_t index = 0; index < displayCount_; ++index) { in Measure() 94 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Measure() 113 for (int32_t index = 0; index < total; ++index) { in Layout() 114 if (index < displayCount_) { in Layout() 115 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout() 119 auto childOffset = CalculateChildOffset(index, layoutWrappe in Layout() 158 CalculateChildOffset(int32_t index, LayoutWrapper* layoutWrapper) CalculateChildOffset() argument [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_info_creator.cpp | 48 size_t index = std::string(info->codePath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo() local 49 if (index == std::string::npos) { in SaveBundleInfo() 55 installDirPath = std::string(info->codePath).substr(0, index); in SaveBundleInfo() 56 index = std::string(info->dataPath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo() 57 if (index == std::string::npos) { in SaveBundleInfo() 63 dataDirPath = std::string(info->dataPath).substr(0, index); in SaveBundleInfo() 241 BundleInfo *bundleInfo, uint32_t index) in SetAbilityInfo() 247 AbilityInfo *abilityInfo = bundleInfo->abilityInfos + index; in SetAbilityInfo() 252 if (bundleProfile.abilityInfos[index].iconPath != nullptr && in SetAbilityInfo() 253 !BundleUtil::StartWith(bundleProfile.abilityInfos[index] in SetAbilityInfo() 240 SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath, BundleInfo *bundleInfo, uint32_t index) SetAbilityInfo() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/cmd/ |
H A D | rs_base_node_cmd_test.cpp | 48 int32_t index = 1; in HWTEST_F() local 49 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 53 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 57 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 61 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 76 int32_t index = 1; in HWTEST_F() local 77 BaseNodeCommandHelper::MoveChild(context, nodeId, childNodeId, index); in HWTEST_F() 81 BaseNodeCommandHelper::MoveChild(context, nodeId, childNodeId, index); in HWTEST_F() 85 BaseNodeCommandHelper::MoveChild(context, nodeId, childNodeId, index); in HWTEST_F() 89 BaseNodeCommandHelper::MoveChild(context, nodeId, childNodeId, index); in HWTEST_F() 133 int32_t index = static_cast<int32_t>(0); HWTEST_F() local 147 int32_t index = static_cast<int32_t>(1); HWTEST_F() local 163 int32_t index = static_cast<int32_t>(1); HWTEST_F() local 287 int32_t index = 1; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/ |
H A D | rs_base_node_command_test.cpp | 58 int32_t index = static_cast<int32_t>(0); in HWTEST_F() local 59 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 72 int32_t index = static_cast<int32_t>(1); in HWTEST_F() local 73 BaseNodeCommandHelper::MoveChild(context, nodeId, childNodeId, index); in HWTEST_F() 88 int32_t index = static_cast<int32_t>(1); in HWTEST_F() local 89 BaseNodeCommandHelper::AddCrossParentChild(context, nodeId, childNodeId, index); in HWTEST_F() 159 int32_t index = 1; in HWTEST_F() local 160 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 164 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 168 BaseNodeCommandHelper::AddChild(context, nodeId, childNodeId, index); in HWTEST_F() 187 int32_t index = 1; HWTEST_F() local 242 int32_t index = 1; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | i18n.c | 395 char *spk_msg_get(enum msg_index_t index) in spk_msg_get() argument 397 return speakup_msgs[index]; in spk_msg_get() 536 * - index: a message number, as found in i18n.h. 540 * -EINVAL - Invalid format specifiers in formatted message or illegal index. 543 ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length) in spk_msg_set() argument 548 if ((index < MSG_FIRST_INDEX) || (index >= MSG_LAST_INDEX)) in spk_msg_set() 557 if (index >= MSG_FORMATTED_START && in spk_msg_set() 558 index <= MSG_FORMATTED_END && in spk_msg_set() 559 !fmt_validate(speakup_default_msgs[index], newst in spk_msg_set() 614 enum msg_index_t index; spk_free_user_msgs() local [all...] |
/kernel/linux/linux-5.10/drivers/char/agp/ |
H A D | efficeon-agp.c | 42 * must match the PAT index for the 48 * 5:0: GATT directory index: which 1st-level entry 160 int index, freed = 0; in efficeon_free_gatt_table() local 162 for (index = 0; index < EFFICEON_L1_SIZE; index++) { in efficeon_free_gatt_table() 163 unsigned long page = efficeon_private.l1_table[index]; in efficeon_free_gatt_table() 165 efficeon_private.l1_table[index] = 0; in efficeon_free_gatt_table() 170 agp_bridge->dev, EFFICEON_ATTPAGE, index); in efficeon_free_gatt_table() 172 EFFICEON_ATTPAGE, index); in efficeon_free_gatt_table() 194 int index; efficeon_create_gatt_table() local 258 int index = pg_start + i; efficeon_insert_memory() local 299 int index = pg_start + i; efficeon_remove_memory() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/nohash/ |
H A D | e500.c | 97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument 109 TLBCAM[index].MAS0 = MAS0_TLBSEL(1) | MAS0_ESEL(index) | MAS0_NV(index+1); in settlbcam() 110 TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid); in settlbcam() 111 TLBCAM[index].MAS2 = virt & PAGE_MASK; in settlbcam() 113 TLBCAM[index].MAS2 |= (flags & _PAGE_WRITETHRU) ? MAS2_W : 0; in settlbcam() 114 TLBCAM[index].MAS2 |= (flags & _PAGE_NO_CACHE) ? MAS2_I : 0; in settlbcam() 115 TLBCAM[index].MAS2 |= (flags & _PAGE_COHERENT) ? MAS2_M : 0; in settlbcam() 116 TLBCAM[index] in settlbcam() [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | index.c | 3 * index.c - NTFS kernel index handling. Part of the Linux-NTFS project. 13 #include "index.h" 17 * ntfs_index_ctx_get - allocate and initialize a new index context 18 * @idx_ni: ntfs index inode with which to initialize the context 20 * Allocate a new index context, initialize it with @idx_ni and return it. 23 * Locking: Caller must hold i_mutex on the index inode. 36 * ntfs_index_ctx_put - release an index context 37 * @ictx: index context to free 39 * Release the index contex [all...] |
/kernel/linux/linux-6.6/drivers/misc/bcm-vk/ |
H A D | bcm_vk_tty.c | 17 #define BAR1_TTYVK_BASE(index) (BAR1_TTYVK_BASE_OFFSET + \ 18 ((index) * BAR1_TTYVK_CHAN_OFFSET * 2)) 19 /* TO TTYVK channel base comes before FROM for each index */ 20 #define TO_TTYK_BASE(index) BAR1_TTYVK_BASE(index) 21 #define FROM_TTYK_BASE(index) (BAR1_TTYVK_BASE(index) + \ 83 /* Don't increment read index if tty app is closed */ in bcm_vk_tty_wq_handler() 131 int index; in bcm_vk_tty_open() local 137 index in bcm_vk_tty_open() 192 int index; bcm_vk_tty_write() local [all...] |
/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | i18n.c | 402 char *spk_msg_get(enum msg_index_t index) in spk_msg_get() argument 404 return speakup_msgs[index]; in spk_msg_get() 543 * - index: a message number, as found in i18n.h. 547 * -EINVAL - Invalid format specifiers in formatted message or illegal index. 550 ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length) in spk_msg_set() argument 555 if ((index < MSG_FIRST_INDEX) || (index >= MSG_LAST_INDEX)) in spk_msg_set() 562 if (index >= MSG_FORMATTED_START && in spk_msg_set() 563 index <= MSG_FORMATTED_END && in spk_msg_set() 564 !fmt_validate(speakup_default_msgs[index], newst in spk_msg_set() 619 enum msg_index_t index; spk_free_user_msgs() local [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | index.c | 3 * index.c - NTFS kernel index handling. Part of the Linux-NTFS project. 13 #include "index.h" 17 * ntfs_index_ctx_get - allocate and initialize a new index context 18 * @idx_ni: ntfs index inode with which to initialize the context 20 * Allocate a new index context, initialize it with @idx_ni and return it. 23 * Locking: Caller must hold i_mutex on the index inode. 36 * ntfs_index_ctx_put - release an index context 37 * @ictx: index context to free 39 * Release the index contex [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | sbuslib.c | 125 unsigned int index, count, i; in sbusfb_ioctl_helper() local 127 if (get_user(index, &c->index) || in sbusfb_ioctl_helper() 151 cmap.start = index + i; in sbusfb_ioctl_helper() 164 unsigned int index, count, i; in sbusfb_ioctl_helper() local 167 if (get_user(index, &c->index) || in sbusfb_ioctl_helper() 174 if (index > cmap->len || count > cmap->len - index) in sbusfb_ioctl_helper() 178 red = cmap->red[index in sbusfb_ioctl_helper() 257 unsigned int index, i; sbusfb_compat_ioctl() local [all...] |
/kernel/linux/linux-6.6/drivers/char/agp/ |
H A D | efficeon-agp.c | 42 * must match the PAT index for the 48 * 5:0: GATT directory index: which 1st-level entry 160 int index, freed = 0; in efficeon_free_gatt_table() local 162 for (index = 0; index < EFFICEON_L1_SIZE; index++) { in efficeon_free_gatt_table() 163 unsigned long page = efficeon_private.l1_table[index]; in efficeon_free_gatt_table() 165 efficeon_private.l1_table[index] = 0; in efficeon_free_gatt_table() 170 agp_bridge->dev, EFFICEON_ATTPAGE, index); in efficeon_free_gatt_table() 172 EFFICEON_ATTPAGE, index); in efficeon_free_gatt_table() 194 int index; efficeon_create_gatt_table() local 258 int index = pg_start + i; efficeon_insert_memory() local 299 int index = pg_start + i; efficeon_remove_memory() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 144 public String getString(int index) { in getString() argument 145 int res = value.getContainerResource(wholeBundle.reader, index); in getString() 153 return super.getString(index); in getString() 155 protected int getContainerResource(int index) { in getContainerResource() argument 156 return value.getContainerResource(wholeBundle.reader, index); in getContainerResource() 158 protected UResourceBundle createBundleObject(int index, String resKey, HashMap<String, String> aliasesVisited, in createBundleObject() argument 160 int item = getContainerResource(index); in createBundleObject() 204 protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, in handleGet() argument 206 return createBundleObject(index, Integer.toString(index), aliasesVisite in handleGet() 218 getKey(int index) getKey() argument 241 handleGet(int index, HashMap<String, String> aliasesVisited, UResourceBundle requested) handleGet() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 145 public String getString(int index) { in getString() argument 146 int res = value.getContainerResource(wholeBundle.reader, index); in getString() 154 return super.getString(index); in getString() 156 protected int getContainerResource(int index) { in getContainerResource() argument 157 return value.getContainerResource(wholeBundle.reader, index); in getContainerResource() 159 protected UResourceBundle createBundleObject(int index, String resKey, HashMap<String, String> aliasesVisited, in createBundleObject() argument 161 int item = getContainerResource(index); in createBundleObject() 205 protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, in handleGet() argument 207 return createBundleObject(index, Integer.toString(index), aliasesVisite in handleGet() 219 getKey(int index) getKey() argument 242 handleGet(int index, HashMap<String, String> aliasesVisited, UResourceBundle requested) handleGet() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_dec_references_mgr.cpp | 63 if(remappedIdx != m_invalidIndex) { // If it already has a remapped index in use, reuse that allocation in get_current_frame_decode_output_texture() 149 if(remappedIdx != m_invalidIndex) { // If it already has a remapped index in use, reuse that allocation in get_reference_only_output() 255 // Check if the index is already mapped. in find_remapped_index() 268 uint16_t index, // in in update_entry() 278 if (index != m_invalidIndex) { in update_entry() 279 remappedIndex = find_remapped_index(index); in update_entry() 300 d3d12_video_decoder_references_manager::store_future_reference(uint16_t index, in store_future_reference() argument 305 // Check if the index was in use. in store_future_reference() 306 uint16_t remappedIndex = find_remapped_index(index); in store_future_reference() 309 // The current output index wa in store_future_reference() 267 update_entry( uint16_t index, ID3D12Resource *&pOutputReference, uint32_t & OutputSubresource, bool &outNeedsTransitionToDecodeRead ) update_entry() argument 339 mark_reference_in_use(uint16_t index) mark_reference_in_use() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_player.cpp | 55 for (int32_t index = 0; index < frameCount_; index++) { in APngImagePlayer() 57 if (frameInfos_[index].duration <= 0) { in APngImagePlayer() 58 frameInfos_[index].duration = 0; in APngImagePlayer() 61 totalFrameDuration += frameInfos_[index].duration; in APngImagePlayer() 64 for (int32_t index = 0; index < frameCount_; index++) { in APngImagePlayer() 65 pictureAnimation->AddPicture(frameInfos_[index] in APngImagePlayer() 220 RenderFrame(const int32_t& index) RenderFrame() argument 274 GetImage(const int32_t& index, bool extendToCanvas) GetImage() argument 713 DecodeFrameImage(const int32_t& index) DecodeFrameImage() argument [all...] |
/kernel/linux/linux-6.6/drivers/md/persistent-data/ |
H A D | dm-btree-remove.c | 129 static void delete_at(struct btree_node *n, unsigned int index) in delete_at() argument 132 unsigned int nr_to_copy = nr_entries - (index + 1); in delete_at() 135 BUG_ON(index >= nr_entries); in delete_at() 138 memmove(key_ptr(n, index), in delete_at() 139 key_ptr(n, index + 1), in delete_at() 142 memmove(value_ptr(n, index), in delete_at() 143 value_ptr(n, index + 1), in delete_at() 156 unsigned int index; member 163 unsigned int index, struct child *result) in init_child() 168 result->index in init_child() 161 init_child(struct dm_btree_info *info, struct dm_btree_value_type *vt, struct btree_node *parent, unsigned int index, struct child *result) init_child() argument 526 do_leaf(struct btree_node *n, uint64_t key, unsigned int *index) do_leaf() argument 544 remove_raw(struct shadow_spine *s, struct dm_btree_info *info, struct dm_btree_value_type *vt, dm_block_t root, uint64_t key, unsigned int *index) remove_raw() argument 598 int index = 0, r = 0; dm_btree_remove() local 638 remove_nearest(struct shadow_spine *s, struct dm_btree_info *info, struct dm_btree_value_type *vt, dm_block_t root, uint64_t key, int *index) remove_nearest() argument 697 int index = 0, r = 0; remove_one() local [all...] |
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | namei.c | 188 * index entries correctly. in ovl_decode_real_fh() 551 /* Get upper dentry from index */ 552 struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index, in ovl_index_upper() argument 558 if (!d_is_dir(index)) in ovl_index_upper() 559 return dget(index); in ovl_index_upper() 561 fh = ovl_get_fh(ofs, index, OVL_XATTR_UPPER); in ovl_index_upper() 572 pr_warn_ratelimited("invalid index upper (%pd2, upper=%pd2).\n", in ovl_index_upper() 573 index, upper); in ovl_index_upper() 582 * Verify that an index entry name matches the origin file handle stored in 586 int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index) in ovl_verify_index() argument 736 struct dentry *index; ovl_get_index_fh() local 766 struct dentry *index; ovl_lookup_index() local 1011 struct dentry *index = NULL; ovl_lookup() local [all...] |
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | cmd640.c | 163 * Registers and masks for easy access by drive index: 400 static void __init check_prefetch(ide_drive_t *drive, unsigned int index) in check_prefetch() argument 402 u8 b = get_cmd640_reg(prefetch_regs[index]); in check_prefetch() 404 __set_prefetch_mode(drive, (b & prefetch_masks[index]) ? 0 : 1); in check_prefetch() 411 static void set_prefetch_mode(ide_drive_t *drive, unsigned int index, int mode) in set_prefetch_mode() argument 414 int reg = prefetch_regs[index]; in set_prefetch_mode() 421 b &= ~prefetch_masks[index]; /* enable prefetch */ in set_prefetch_mode() 423 b |= prefetch_masks[index]; /* disable prefetch */ in set_prefetch_mode() 431 static void display_clocks(unsigned int index) in display_clocks() argument 435 active_count = active_counts[index]; in display_clocks() 459 program_drive_counts(ide_drive_t *drive, unsigned int index) program_drive_counts() argument 515 cmd640_set_mode(ide_drive_t *drive, unsigned int index, u8 pio_mode, unsigned int cycle_time) cmd640_set_mode() argument 579 unsigned int index = 0, cycle_time; cmd640_set_pio_mode() local [all...] |