| /OK3568_Linux_fs/kernel/drivers/clk/ |
| H A D | clk-conf.c | 17 int index, rc, num_parents; in __set_clk_parents() local 26 for (index = 0; index < num_parents; index++) { in __set_clk_parents() 28 "#clock-cells", index, &clkspec); in __set_clk_parents() 42 index, node); in __set_clk_parents() 47 "#clock-cells", index, &clkspec); in __set_clk_parents() 58 index, node); in __set_clk_parents() 81 int rc, index = 0; in __set_clk_rates() local 88 "#clock-cells", index, &clkspec); in __set_clk_rates() 103 index, node); in __set_clk_rates() 114 index++; in __set_clk_rates()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | mmio_nvram.c | 24 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) in mmio_nvram_read() argument 28 if (*index >= mmio_nvram_len) in mmio_nvram_read() 30 if (*index + count > mmio_nvram_len) in mmio_nvram_read() 31 count = mmio_nvram_len - *index; in mmio_nvram_read() 35 memcpy_fromio(buf, mmio_nvram_start + *index, count); in mmio_nvram_read() 39 *index += count; in mmio_nvram_read() 60 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) in mmio_nvram_write() argument 64 if (*index >= mmio_nvram_len) in mmio_nvram_write() 66 if (*index + count > mmio_nvram_len) in mmio_nvram_write() 67 count = mmio_nvram_len - *index; in mmio_nvram_write() [all …]
|
| /OK3568_Linux_fs/kernel/fs/xfs/libxfs/ |
| H A D | xfs_bmap_btree.h | 22 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument 26 ((index) - 1) * sizeof(xfs_bmbt_rec_t))) 28 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument 32 ((index) - 1) * sizeof(xfs_bmbt_key_t))) 34 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument 39 ((index) - 1) * sizeof(xfs_bmbt_ptr_t))) 41 #define XFS_BMDR_REC_ADDR(block, index) \ argument 45 ((index) - 1) * sizeof(xfs_bmdr_rec_t))) 47 #define XFS_BMDR_KEY_ADDR(block, index) \ argument 51 ((index) - 1) * sizeof(xfs_bmdr_key_t))) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/hal/phydm/rtl8188e/ |
| H A D | halphyrf_8188e_ce.c | 1750 u4Byte tmpReg, index, offset, apkbound; in phy_APCalibrate_8188E() local 1872 for(index = 0; index < PATH_NUM; index ++) in phy_APCalibrate_8188E() 1874 APK_offset[index] = APK_normal_offset[index]; in phy_APCalibrate_8188E() 1875 APK_value[index] = APK_normal_value[index]; in phy_APCalibrate_8188E() 1876 AFE_on_off[index] = 0x6fdb25a4; in phy_APCalibrate_8188E() 1879 for(index = 0; index < APK_BB_REG_NUM; index ++) in phy_APCalibrate_8188E() 1883 APK_RF_init_value[path][index] = APK_normal_RF_init_value[path][index]; in phy_APCalibrate_8188E() 1884 APK_RF_value_0[path][index] = APK_normal_RF_value_0[path][index]; in phy_APCalibrate_8188E() 1886 BB_AP_MODE[index] = BB_normal_AP_MODE[index]; in phy_APCalibrate_8188E() 1892 for(index = 0; index < APK_BB_REG_NUM ; index++) in phy_APCalibrate_8188E() [all …]
|
| H A D | halphyrf_8188e_win.c | 1795 u4Byte tmpReg, index, offset, apkbound; in phy_APCalibrate_8188E() local 1913 for(index = 0; index < PATH_NUM; index ++) in phy_APCalibrate_8188E() 1915 APK_offset[index] = APK_normal_offset[index]; in phy_APCalibrate_8188E() 1916 APK_value[index] = APK_normal_value[index]; in phy_APCalibrate_8188E() 1917 AFE_on_off[index] = 0x6fdb25a4; in phy_APCalibrate_8188E() 1920 for(index = 0; index < APK_BB_REG_NUM; index ++) in phy_APCalibrate_8188E() 1924 APK_RF_init_value[path][index] = APK_normal_RF_init_value[path][index]; in phy_APCalibrate_8188E() 1925 APK_RF_value_0[path][index] = APK_normal_RF_value_0[path][index]; in phy_APCalibrate_8188E() 1927 BB_AP_MODE[index] = BB_normal_AP_MODE[index]; in phy_APCalibrate_8188E() 1933 for(index = 0; index < APK_BB_REG_NUM ; index++) in phy_APCalibrate_8188E() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/halrf/rtl8723b/ |
| H A D | halrf_8723b_win.c | 2256 u32 tmp_reg, index, offset, apkbound; 2384 for (index = 0; index < PATH_NUM; index++) { 2385 APK_offset[index] = APK_normal_offset[index]; 2386 APK_value[index] = APK_normal_value[index]; 2387 AFE_on_off[index] = 0x6fdb25a4; 2390 for (index = 0; index < APK_BB_REG_NUM; index++) { 2392 APK_RF_init_value[path][index] = APK_normal_RF_init_value[path][index]; 2393 APK_RF_value_0[path][index] = APK_normal_RF_value_0[path][index]; 2395 BB_AP_MODE[index] = BB_normal_AP_MODE[index]; 2401 for (index = 0; index < APK_BB_REG_NUM ; index++) { [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8723bs/hal/ |
| H A D | hal_com_phycfg.c | 274 u8 index = 0; in PHY_GetRateSectionIndexOfTxPowerByRate() local 279 index = 0; in PHY_GetRateSectionIndexOfTxPowerByRate() 282 index = 1; in PHY_GetRateSectionIndexOfTxPowerByRate() 285 index = 6; in PHY_GetRateSectionIndexOfTxPowerByRate() 289 index = 7; in PHY_GetRateSectionIndexOfTxPowerByRate() 291 index = 15; in PHY_GetRateSectionIndexOfTxPowerByRate() 295 index = 2; in PHY_GetRateSectionIndexOfTxPowerByRate() 298 index = 3; in PHY_GetRateSectionIndexOfTxPowerByRate() 301 index = 4; in PHY_GetRateSectionIndexOfTxPowerByRate() 304 index = 5; in PHY_GetRateSectionIndexOfTxPowerByRate() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/can/c_can/ |
| H A D | c_can_pci.c | 51 enum reg index) in c_can_pci_read_reg_aligned_to_16bit() argument 53 return readw(priv->base + priv->regs[index]); in c_can_pci_read_reg_aligned_to_16bit() 57 enum reg index, u16 val) in c_can_pci_write_reg_aligned_to_16bit() argument 59 writew(val, priv->base + priv->regs[index]); in c_can_pci_write_reg_aligned_to_16bit() 63 enum reg index) in c_can_pci_read_reg_aligned_to_32bit() argument 65 return readw(priv->base + 2 * priv->regs[index]); in c_can_pci_read_reg_aligned_to_32bit() 69 enum reg index, u16 val) in c_can_pci_write_reg_aligned_to_32bit() argument 71 writew(val, priv->base + 2 * priv->regs[index]); in c_can_pci_write_reg_aligned_to_32bit() 75 enum reg index) in c_can_pci_read_reg_32bit() argument 77 return (u16)ioread32(priv->base + 2 * priv->regs[index]); in c_can_pci_read_reg_32bit() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ntfs/ |
| H A D | dir.c | 115 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_lookup_inode_by_name() 117 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_lookup_inode_by_name() 118 le32_to_cpu(ir->index.entries_offset)); in ntfs_lookup_inode_by_name() 309 dir_ni->itype.index.vcn_size_bits >> PAGE_SHIFT); in ntfs_lookup_inode_by_name() 321 dir_ni->itype.index.vcn_size_bits) & ~PAGE_MASK)); in ntfs_lookup_inode_by_name() 344 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_lookup_inode_by_name() 345 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 351 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_lookup_inode_by_name() 352 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name() 355 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/tc_act/ |
| H A D | tc_pedit.h | 38 static inline u32 tcf_pedit_htype(const struct tc_action *a, int index) in tcf_pedit_htype() argument 41 return to_pedit(a)->tcfp_keys_ex[index].htype; in tcf_pedit_htype() 46 static inline u32 tcf_pedit_cmd(const struct tc_action *a, int index) in tcf_pedit_cmd() argument 49 return to_pedit(a)->tcfp_keys_ex[index].cmd; in tcf_pedit_cmd() 54 static inline u32 tcf_pedit_mask(const struct tc_action *a, int index) in tcf_pedit_mask() argument 56 return to_pedit(a)->tcfp_keys[index].mask; in tcf_pedit_mask() 59 static inline u32 tcf_pedit_val(const struct tc_action *a, int index) in tcf_pedit_val() argument 61 return to_pedit(a)->tcfp_keys[index].val; in tcf_pedit_val() 64 static inline u32 tcf_pedit_offset(const struct tc_action *a, int index) in tcf_pedit_offset() argument 66 return to_pedit(a)->tcfp_keys[index].off; in tcf_pedit_offset()
|
| /OK3568_Linux_fs/kernel/drivers/char/agp/ |
| H A D | efficeon-agp.c | 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; in efficeon_create_gatt_table() local 208 for (index = 0 ; index < l1_pages ; index++) { in efficeon_create_gatt_table() 213 page = efficeon_private.l1_table[index]; in efficeon_create_gatt_table() 225 efficeon_private.l1_table[index] = page; in efficeon_create_gatt_table() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/isdn/mISDN/ |
| H A D | dsp_tones.c | 377 int index, count, start, num; in dsp_tone_copy() local 390 index = tone->index; /* gives current sequence index */ in dsp_tone_copy() 398 if (!pat->seq[index]) { in dsp_tone_copy() 400 index = 0; in dsp_tone_copy() 403 if (count < pat->seq[index]) in dsp_tone_copy() 407 "(index=%d)\n", __func__, index); in dsp_tone_copy() 408 count -= pat->seq[index]; in dsp_tone_copy() 409 index++; in dsp_tone_copy() 412 start = count % (*(pat->siz[index])); in dsp_tone_copy() 414 if (num + count > pat->seq[index]) in dsp_tone_copy() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/declarativemaps/ |
| H A D | qdeclarativegeomapitemview.cpp | 152 void QDeclarativeGeoMapItemView::createdItem(int index, QObject * /*object*/) in createdItem() argument 169 QQuickItem *item = qobject_cast<QQuickItem *>(m_delegateModel->object(index, m_incubationMode)); in createdItem() 171 addDelegateToMap(item, index, true); in createdItem() 173 …qWarning() << "QQmlDelegateModel:: object called in createdItem for " << index << " produced a nul… in createdItem() 369 void QDeclarativeGeoMapItemView::removeDelegateFromMap(int index, bool transition) in removeDelegateFromMap() argument 371 if (index >= 0 && index < m_instantiatedItems.size()) { in removeDelegateFromMap() 372 QQuickItem *item = m_instantiatedItems.takeAt(index); in removeDelegateFromMap() 378 m_delegateModel->cancel(index); in removeDelegateFromMap() 393 qWarning() << "item "<< index << "(" << item << ") still referenced"; in removeDelegateFromMap() 481 void QDeclarativeGeoMapItemView::addItemToMap(QDeclarativeGeoMapItemBase *item, int index, bool cre… in addItemToMap() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/hal_hci/ |
| H A D | hal_usb.c | 252 u16 index; in usb_write_async() local 257 index = REALTEK_USB_VENQT_CMD_IDX;//n/a in usb_write_async() 261 ret = _usbctrl_vendorreq_async_write(udev, request, wvalue, index, pdata, len, requesttype); in usb_write_async() 317 u16 index; in usb_read8() local 325 index = 0;//n/a in usb_read8() 329 usbctrl_vendorreq(pintfhdl, request, wvalue, index, in usb_read8() 342 u16 index; in usb_read16() local 350 index = 0;//n/a in usb_read16() 354 usbctrl_vendorreq(pintfhdl, request, wvalue, index, in usb_read16() 368 u16 index; in usb_read32() local [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | radix-tree.h | 105 unsigned long index; member 217 int radix_tree_insert(struct radix_tree_root *, unsigned long index, 219 void *__radix_tree_lookup(const struct radix_tree_root *, unsigned long index, 223 unsigned long index); 241 unsigned long index, unsigned int tag); 243 unsigned long index, unsigned int tag); 245 unsigned long index, unsigned int tag); 289 iter->index = 0; in radix_tree_iter_init() 322 struct radix_tree_iter *iter, unsigned long index) in radix_tree_iter_lookup() argument 324 radix_tree_iter_init(iter, index); in radix_tree_iter_lookup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/lsensor/ |
| H A D | cm3232.c | 123 unsigned char index = 0; in light_report_value() local 126 index = 0;goto report; in light_report_value() 129 index = 1;goto report; in light_report_value() 132 index = 2;goto report; in light_report_value() 135 index = 3;goto report; in light_report_value() 138 index = 4;goto report; in light_report_value() 141 index = 5;goto report; in light_report_value() 144 index = 6;goto report; in light_report_value() 147 index = 7;goto report; in light_report_value() 151 input_report_abs(input, ABS_MISC, index); in light_report_value() [all …]
|
| /OK3568_Linux_fs/kernel/tools/virtio/ringtest/ |
| H A D | ring.c | 35 unsigned short index; member 99 .index = i, in alloc_ring() 114 unsigned head, index; in add_inbuf() local 133 index = ring[head].index; in add_inbuf() 134 data[index].buf = buf; in add_inbuf() 135 data[index].data = datap; in add_inbuf() 146 unsigned index; in get_buf() local 154 index = ring[head].index & (ring_size - 1); in get_buf() 155 datap = data[index].data; in get_buf() 156 *bufp = data[index].buf; in get_buf() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/ |
| H A D | az6007.c | 101 u16 index, u8 *b, int blen) in __az6007_read() argument 109 value, index, b, blen, 5000); in __az6007_read() 117 req, value, index); in __az6007_read() 126 u16 index, u8 *b, int blen) in az6007_read() argument 134 ret = __az6007_read(d->udev, req, value, index, b, blen); in az6007_read() 142 u16 index, u8 *b, int blen) in __az6007_write() argument 148 req, value, index); in __az6007_write() 163 value, index, b, blen, 5000); in __az6007_write() 173 u16 index, u8 *b, int blen) in az6007_write() argument 181 ret = __az6007_write(d->udev, req, value, index, b, blen); in az6007_write() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/radix-tree/ |
| H A D | regression3.c | 45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test() 52 printv(2, "retry at %ld\n", iter.index); in regression3_test() 61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 67 printv(2, "retry at %ld\n", iter.index); in regression3_test() 74 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 75 if (!iter.index) { in regression3_test() 76 printv(2, "next at %ld\n", iter.index); in regression3_test() 84 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test() 85 if (!iter.index) { in regression3_test() 86 printv(2, "next at %ld\n", iter.index); in regression3_test()
|
| /OK3568_Linux_fs/kernel/drivers/staging/octeon-usb/ |
| H A D | octeon-hcd.c | 367 int index; member 540 cvmx_read64_uint64(CVMX_USBNX_DMA0_INB_CHN0(usb->index)); in cvmx_usb_write_csr32() 577 u64 address = CVMX_USBCX_GRSTCTL(usb->index); in cvmx_wait_tx_rx() 607 CVMX_USBCX_GHWCFG3(usb->index)); in cvmx_fifo_setup() 613 USB_SET_FIELD32(CVMX_USBCX_GRXFSIZ(usb->index), cvmx_usbcx_grxfsiz, in cvmx_fifo_setup() 621 npsiz.u32 = cvmx_usb_read_csr32(usb, CVMX_USBCX_GNPTXFSIZ(usb->index)); in cvmx_fifo_setup() 624 cvmx_usb_write_csr32(usb, CVMX_USBCX_GNPTXFSIZ(usb->index), npsiz.u32); in cvmx_fifo_setup() 631 psiz.u32 = cvmx_usb_read_csr32(usb, CVMX_USBCX_HPTXFSIZ(usb->index)); in cvmx_fifo_setup() 634 cvmx_usb_write_csr32(usb, CVMX_USBCX_HPTXFSIZ(usb->index), psiz.u32); in cvmx_fifo_setup() 637 USB_SET_FIELD32(CVMX_USBCX_GRSTCTL(usb->index), in cvmx_fifo_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/shmobile/ |
| H A D | shmob_drm_plane.c | 23 unsigned int index; member 114 splane->index, #reg, \ in __shmob_drm_plane_setup() 115 lcdc_read(sdev, reg(splane->index)), \ in __shmob_drm_plane_setup() 116 lcdc_read(sdev, reg(splane->index) + LCDC_SIDE_B_OFFSET)) in __shmob_drm_plane_setup() 125 lcdc_write(sdev, LDBCR, LDBCR_UPC(splane->index)); in __shmob_drm_plane_setup() 126 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x\n", __func__, splane->index, in __shmob_drm_plane_setup() 129 lcdc_write(sdev, LDBnBSIFR(splane->index), format); in __shmob_drm_plane_setup() 131 lcdc_write(sdev, LDBnBSSZR(splane->index), in __shmob_drm_plane_setup() 134 lcdc_write(sdev, LDBnBLOCR(splane->index), in __shmob_drm_plane_setup() 137 lcdc_write(sdev, LDBnBSMWR(splane->index), in __shmob_drm_plane_setup() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h263/ |
| H A D | h263d_parser.c | 268 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_flush() local 272 if (!hdr_curr->enqueued && index >= 0) { in mpp_h263_parser_flush() 273 mpp_buf_slot_set_flag(slots, index, SLOT_QUEUE_USE); in mpp_h263_parser_flush() 274 mpp_buf_slot_enqueue(slots, index, QUEUE_DISPLAY); in mpp_h263_parser_flush() 289 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_reset() local 293 if (index >= 0) { in mpp_h263_parser_reset() 294 mpp_buf_slot_clr_flag(slots, index, SLOT_CODEC_USE); in mpp_h263_parser_reset() 298 index = hdr_ref0->slot_idx; in mpp_h263_parser_reset() 299 if (index >= 0) { in mpp_h263_parser_reset() 300 mpp_buf_slot_clr_flag(slots, index, SLOT_CODEC_USE); in mpp_h263_parser_reset() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | cpufreq_times.c | 156 int index; in cpufreq_times_get_index() local 157 for (index = 0; index < freqs->max_state; ++index) { in cpufreq_times_get_index() 158 if (freqs->freq_table[index] == freq) in cpufreq_times_get_index() 159 return index; in cpufreq_times_get_index() 166 int cpu, index = 0; in cpufreq_times_create_policy() local 191 freqs->freq_table[index++] = pos->frequency; in cpufreq_times_create_policy() 193 index = cpufreq_times_get_index(freqs, policy->cur); in cpufreq_times_create_policy() 194 if (index >= 0) in cpufreq_times_create_policy() 195 WRITE_ONCE(freqs->last_index, index); in cpufreq_times_create_policy() 206 int index; in cpufreq_times_record_transition() local [all …]
|
| /OK3568_Linux_fs/external/xserver/glx/ |
| H A D | vndservermapping.c | 94 unsigned int index; in GlxAllocContextTag() local 106 for (index=0; index<cl->contextTagCount; index++) { in GlxAllocContextTag() 107 if (cl->contextTags[index].vendor == NULL) { in GlxAllocContextTag() 111 if (index >= cl->contextTagCount) { in GlxAllocContextTag() 129 index = cl->contextTagCount; in GlxAllocContextTag() 134 assert(index >= 0); in GlxAllocContextTag() 135 assert(index < cl->contextTagCount); in GlxAllocContextTag() 136 memset(&cl->contextTags[index], 0, sizeof(GlxContextTagInfo)); in GlxAllocContextTag() 137 cl->contextTags[index].tag = (GLXContextTag) (index + 1); in GlxAllocContextTag() 138 cl->contextTags[index].client = client; in GlxAllocContextTag() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | cppi_dma.c | 163 controller->tx[i].index = i; in cppi_controller_start() 167 controller->rx[i].index = i; in cppi_controller_start() 285 u8 index; in cppi_channel_allocate() local 295 index = ep->epnum - 1; in cppi_channel_allocate() 301 if (index >= ARRAY_SIZE(controller->tx)) { in cppi_channel_allocate() 302 musb_dbg(musb, "no %cX%d CPPI channel", 'T', index); in cppi_channel_allocate() 305 cppi_ch = controller->tx + index; in cppi_channel_allocate() 307 if (index >= ARRAY_SIZE(controller->rx)) { in cppi_channel_allocate() 308 musb_dbg(musb, "no %cX%d CPPI channel", 'R', index); in cppi_channel_allocate() 311 cppi_ch = controller->rx + index; in cppi_channel_allocate() [all …]
|