Searched refs:ldb (Results 1 - 26 of 26) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/imx/
H A Dimx-ldb.c33 #define DRIVER_NAME "imx-ldb"
56 struct imx_ldb *ldb; member in struct:imx_ldb_channel
149 static void imx_ldb_set_clock(struct imx_ldb *ldb, int mux, int chno, imx_ldb_set_clock() argument
154 dev_dbg(ldb->dev, "%s: now: %ld want: %ld\n", __func__, imx_ldb_set_clock()
155 clk_get_rate(ldb->clk_pll[chno]), serial_clk); imx_ldb_set_clock()
156 clk_set_rate(ldb->clk_pll[chno], serial_clk); imx_ldb_set_clock()
158 dev_dbg(ldb->dev, "%s after: %ld\n", __func__, imx_ldb_set_clock()
159 clk_get_rate(ldb->clk_pll[chno])); imx_ldb_set_clock()
161 dev_dbg(ldb->dev, "%s: now: %ld want: %ld\n", __func__, imx_ldb_set_clock()
162 clk_get_rate(ldb->clk[chno]), imx_ldb_set_clock()
164 clk_set_rate(ldb->clk[chno], di_clk); imx_ldb_set_clock()
166 dev_dbg(ldb->dev, "%s after: %ld\n", __func__, imx_ldb_set_clock()
167 clk_get_rate(ldb->clk[chno])); imx_ldb_set_clock()
170 ret = clk_set_parent(ldb->clk_sel[mux], ldb->clk[chno]); imx_ldb_set_clock()
172 dev_err(ldb->dev, imx_ldb_set_clock()
180 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_prepare() local
181 int dual = ldb->ldb_ctrl & LDB_SPLIT_MODE_EN; imx_ldb_encoder_prepare()
186 dev_warn(ldb->dev, imx_ldb_encoder_prepare()
195 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24; imx_ldb_encoder_prepare()
197 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24; imx_ldb_encoder_prepare()
202 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24 | imx_ldb_encoder_prepare()
205 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24 | imx_ldb_encoder_prepare()
216 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_commit() local
217 int dual = ldb->ldb_ctrl & LDB_SPLIT_MODE_EN; imx_ldb_encoder_commit()
223 clk_prepare_enable(ldb->clk[0]); imx_ldb_encoder_commit()
224 clk_prepare_enable(ldb->clk[1]); imx_ldb_encoder_commit()
227 if (imx_ldb_ch == &ldb->channel[0] || dual) { imx_ldb_encoder_commit()
228 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; imx_ldb_encoder_commit()
229 if (mux == 0 || ldb->lvds_mux) imx_ldb_encoder_commit()
230 ldb->ldb_ctrl |= LDB_CH0_MODE_EN_TO_DI0; imx_ldb_encoder_commit()
232 ldb->ldb_ctrl |= LDB_CH0_MODE_EN_TO_DI1; imx_ldb_encoder_commit()
234 if (imx_ldb_ch == &ldb->channel[1] || dual) { imx_ldb_encoder_commit()
235 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; imx_ldb_encoder_commit()
236 if (mux == 1 || ldb->lvds_mux) imx_ldb_encoder_commit()
237 ldb->ldb_ctrl |= LDB_CH1_MODE_EN_TO_DI1; imx_ldb_encoder_commit()
239 ldb->ldb_ctrl |= LDB_CH1_MODE_EN_TO_DI0; imx_ldb_encoder_commit()
242 if (ldb->lvds_mux) { imx_ldb_encoder_commit()
245 if (imx_ldb_ch == &ldb->channel[0]) imx_ldb_encoder_commit()
246 lvds_mux = &ldb->lvds_mux[0]; imx_ldb_encoder_commit()
247 else if (imx_ldb_ch == &ldb->channel[1]) imx_ldb_encoder_commit()
248 lvds_mux = &ldb->lvds_mux[1]; imx_ldb_encoder_commit()
250 regmap_update_bits(ldb->regmap, lvds_mux->reg, lvds_mux->mask, imx_ldb_encoder_commit()
254 regmap_write(ldb->regmap, IOMUXC_GPR2, ldb->ldb_ctrl); imx_ldb_encoder_commit()
264 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_mode_set() local
265 int dual = ldb->ldb_ctrl & LDB_SPLIT_MODE_EN; imx_ldb_encoder_mode_set()
271 dev_warn(ldb->dev, imx_ldb_encoder_mode_set()
275 dev_warn(ldb->dev, imx_ldb_encoder_mode_set()
281 imx_ldb_set_clock(ldb, mux, 0, serial_clk, di_clk); imx_ldb_encoder_mode_set()
282 imx_ldb_set_clock(ldb, mux, 1, serial_clk, di_clk); imx_ldb_encoder_mode_set()
285 imx_ldb_set_clock(ldb, mux, imx_ldb_ch->chno, serial_clk, imx_ldb_encoder_mode_set()
290 if (imx_ldb_ch == &ldb->channel[0]) { imx_ldb_encoder_mode_set()
292 ldb->ldb_ctrl |= LDB_DI0_VS_POL_ACT_LOW; imx_ldb_encoder_mode_set()
294 ldb->ldb_ctrl &= ~LDB_DI0_VS_POL_ACT_LOW; imx_ldb_encoder_mode_set()
296 if (imx_ldb_ch == &ldb->channel[1]) { imx_ldb_encoder_mode_set()
298 ldb->ldb_ctrl |= LDB_DI1_VS_POL_ACT_LOW; imx_ldb_encoder_mode_set()
300 ldb->ldb_ctrl &= ~LDB_DI1_VS_POL_ACT_LOW; imx_ldb_encoder_mode_set()
307 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_disable() local
315 if (imx_ldb_ch == &ldb->channel[0] && imx_ldb_encoder_disable()
316 (ldb->ldb_ctrl & LDB_CH0_MODE_EN_MASK) == 0) imx_ldb_encoder_disable()
318 else if (imx_ldb_ch == &ldb->channel[1] && imx_ldb_encoder_disable()
319 (ldb->ldb_ctrl & LDB_CH1_MODE_EN_MASK) == 0) imx_ldb_encoder_disable()
324 if (imx_ldb_ch == &ldb->channel[0]) imx_ldb_encoder_disable()
325 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; imx_ldb_encoder_disable()
326 else if (imx_ldb_ch == &ldb->channel[1]) imx_ldb_encoder_disable()
327 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; imx_ldb_encoder_disable()
329 regmap_write(ldb->regmap, IOMUXC_GPR2, ldb->ldb_ctrl); imx_ldb_encoder_disable()
331 if (ldb->ldb_ctrl & LDB_SPLIT_MODE_EN) { imx_ldb_encoder_disable()
332 clk_disable_unprepare(ldb->clk[0]); imx_ldb_encoder_disable()
333 clk_disable_unprepare(ldb->clk[1]); imx_ldb_encoder_disable()
336 if (ldb->lvds_mux) { imx_ldb_encoder_disable()
339 if (imx_ldb_ch == &ldb->channel[0]) imx_ldb_encoder_disable()
340 lvds_mux = &ldb->lvds_mux[0]; imx_ldb_encoder_disable()
341 else if (imx_ldb_ch == &ldb->channel[1]) imx_ldb_encoder_disable()
342 lvds_mux = &ldb->lvds_mux[1]; imx_ldb_encoder_disable()
344 regmap_read(ldb->regmap, lvds_mux->reg, &mux); imx_ldb_encoder_disable()
348 mux = (imx_ldb_ch == &ldb->channel[0]) ? 0 : 1; imx_ldb_encoder_disable()
352 ret = clk_set_parent(ldb->clk_sel[mux], ldb->clk_parent[mux]); imx_ldb_encoder_disable()
354 dev_err(ldb->dev, imx_ldb_encoder_disable()
386 static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno) imx_ldb_get_clk() argument
391 ldb->clk[chno] = devm_clk_get(ldb->dev, clkname); imx_ldb_get_clk()
392 if (IS_ERR(ldb->clk[chno])) imx_ldb_get_clk()
393 return PTR_ERR(ldb->clk[chno]); imx_ldb_get_clk()
396 ldb->clk_pll[chno] = devm_clk_get(ldb->dev, clkname); imx_ldb_get_clk()
398 return PTR_ERR_OR_ZERO(ldb->clk_pll[chno]); imx_ldb_get_clk()
404 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_register() local
412 ret = imx_ldb_get_clk(ldb, imx_ldb_ch->chno); imx_ldb_register()
416 if (ldb->ldb_ctrl & LDB_SPLIT_MODE_EN) { imx_ldb_register()
417 ret = imx_ldb_get_clk(ldb, 1); imx_ldb_register()
494 * For a device declaring compatible = "fsl,imx6q-ldb", "fsl,imx53-ldb",
497 * entries (in this case fsl,imx53-ldb) need to be ordered last.
500 { .compatible = "fsl,imx6q-ldb", .data = imx6q_lvds_mux, },
501 { .compatible = "fsl,imx53-ldb", .data = NULL, },
578 channel->ldb = imx_ldb; for_each_child_of_node()
H A DMakefile8 obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o
/linux-4.1.27/arch/m32r/lib/
H A Dstrlen.S43 ldb r1, @r6 || addi r6, #1
51 ldb r1, @r6 || addi r6, #1
93 ldb r1, @r6
104 ldb r1, @r6
H A Dmemcpy.S41 ldb r7, @r1 || addi r1, #1
46 ldb r7, @r1 || addi r1, #1
81 ldb r7, @r1
H A Dusercopy.c47 "0: ldb r14, @%3 || addi %3, #1\n" \
81 "0: ldb r14, @%3\n" \
270 "1: ldb r0, @%1 || addi %0, #-1\n" strnlen_user()
344 "1: ldb r0, @%1\n" strnlen_user()
/linux-4.1.27/arch/arc/lib/
H A Dmemcmp.S100 ldb r4,[r0,0]
101 ldb r5,[r1,0]
105 ldb r12,[r1,1]
107 ldb.a r4,[r0,2]
108 ldb.a r5,[r1,2]
H A Dstrcpy-700.S64 ldb.ab r3,[r1,1]
/linux-4.1.27/block/partitions/
H A Dldm.c409 * @ldb: Cache of the database structures
420 unsigned long base, struct ldmdb *ldb) ldm_validate_tocblocks()
430 BUG_ON(!state || !ldb); ldm_validate_tocblocks()
431 ph = &ldb->ph; ldm_validate_tocblocks()
432 tb[0] = &ldb->toc; ldm_validate_tocblocks()
485 * @ldb: Cache of the database structures
488 * information in @ldb.
490 * Return: 'true' @ldb contains validated VBDB info
491 * 'false' @ldb contents are undefined
494 unsigned long base, struct ldmdb *ldb) ldm_validate_vmdb()
502 BUG_ON (!state || !ldb); ldm_validate_vmdb()
504 vm = &ldb->vm; ldm_validate_vmdb()
505 toc = &ldb->toc; ldm_validate_vmdb()
594 * @ldb: Cache of the database structures
604 static struct vblk * ldm_get_disk_objid (const struct ldmdb *ldb) ldm_get_disk_objid() argument
608 BUG_ON (!ldb); ldm_get_disk_objid()
610 list_for_each (item, &ldb->v_disk) { ldm_get_disk_objid()
612 if (!memcmp (v->vblk.disk.disk_id, ldb->ph.disk_id, GUID_SIZE)) ldm_get_disk_objid()
622 * @ldb: Cache of the database structures
637 const struct ldmdb *ldb) ldm_create_data_partitions()
645 BUG_ON (!pp || !ldb); ldm_create_data_partitions()
647 disk = ldm_get_disk_objid (ldb); ldm_create_data_partitions()
656 list_for_each (item, &ldb->v_part) { ldm_create_data_partitions()
663 put_partition (pp, part_num, ldb->ph.logical_disk_start + ldm_create_data_partitions()
1225 * @ldb: Cache of the database structures
1234 static bool ldm_ldmdb_add (u8 *data, int len, struct ldmdb *ldb) ldm_ldmdb_add() argument
1239 BUG_ON (!data || !ldb); ldm_ldmdb_add()
1256 list_add (&vb->list, &ldb->v_dgrp); ldm_ldmdb_add()
1260 list_add (&vb->list, &ldb->v_disk); ldm_ldmdb_add()
1263 list_add (&vb->list, &ldb->v_volu); ldm_ldmdb_add()
1266 list_add (&vb->list, &ldb->v_comp); ldm_ldmdb_add()
1270 list_for_each (item, &ldb->v_part) { ldm_ldmdb_add()
1278 list_add_tail (&vb->list, &ldb->v_part); ldm_ldmdb_add()
1379 * @ldb: Cache of the database structures
1387 static bool ldm_frag_commit (struct list_head *frags, struct ldmdb *ldb) ldm_frag_commit() argument
1392 BUG_ON (!frags || !ldb); ldm_frag_commit()
1403 if (!ldm_ldmdb_add (f->data, f->num*ldb->vm.vblk_size, ldb)) list_for_each()
1413 * @ldb: Cache of the database structures
1416 * unpacked and validated. We cache them in @ldb according to their type.
1422 struct ldmdb *ldb) ldm_get_vblks()
1430 BUG_ON(!state || !ldb); ldm_get_vblks()
1432 size = ldb->vm.vblk_size; ldm_get_vblks()
1434 skip = ldb->vm.vblk_offset >> 9; /* Bytes to sectors */ ldm_get_vblks()
1435 finish = (size * ldb->vm.last_vblk_seq) >> 9; ldm_get_vblks()
1452 if (!ldm_ldmdb_add (data, size, ldb)) ldm_get_vblks()
1464 result = ldm_frag_commit (&frags, ldb); /* Failures, already logged */ ldm_get_vblks()
1511 struct ldmdb *ldb; ldm_partition() local
1521 ldb = kmalloc (sizeof (*ldb), GFP_KERNEL); ldm_partition()
1522 if (!ldb) { ldm_partition()
1528 if (!ldm_validate_privheads(state, &ldb->ph)) ldm_partition()
1532 base = ldb->ph.config_start; ldm_partition()
1535 if (!ldm_validate_tocblocks(state, base, ldb) || ldm_partition()
1536 !ldm_validate_vmdb(state, base, ldb)) ldm_partition()
1540 INIT_LIST_HEAD (&ldb->v_dgrp); ldm_partition()
1541 INIT_LIST_HEAD (&ldb->v_disk); ldm_partition()
1542 INIT_LIST_HEAD (&ldb->v_volu); ldm_partition()
1543 INIT_LIST_HEAD (&ldb->v_comp); ldm_partition()
1544 INIT_LIST_HEAD (&ldb->v_part); ldm_partition()
1546 if (!ldm_get_vblks(state, base, ldb)) { ldm_partition()
1552 if (ldm_create_data_partitions(state, ldb)) { ldm_partition()
1559 ldm_free_vblks (&ldb->v_dgrp); ldm_partition()
1560 ldm_free_vblks (&ldb->v_disk); ldm_partition()
1561 ldm_free_vblks (&ldb->v_volu); ldm_partition()
1562 ldm_free_vblks (&ldb->v_comp); ldm_partition()
1563 ldm_free_vblks (&ldb->v_part); ldm_partition()
1565 kfree (ldb); ldm_partition()
419 ldm_validate_tocblocks(struct parsed_partitions *state, unsigned long base, struct ldmdb *ldb) ldm_validate_tocblocks() argument
493 ldm_validate_vmdb(struct parsed_partitions *state, unsigned long base, struct ldmdb *ldb) ldm_validate_vmdb() argument
636 ldm_create_data_partitions(struct parsed_partitions *pp, const struct ldmdb *ldb) ldm_create_data_partitions() argument
1421 ldm_get_vblks(struct parsed_partitions *state, unsigned long base, struct ldmdb *ldb) ldm_get_vblks() argument
/linux-4.1.27/net/core/
H A Dptp_classifier.c25 * ldb [23] ; load proto
41 * ldb [20] ; load proto
56 * ldb [18] ; load payload
67 * ldb [27] ; load proto
83 * ldb [24] ; load proto
96 * ldb [14] ; load payload
/linux-4.1.27/arch/nios2/include/asm/
H A Dcmpxchg.h30 "ldb %0, %2\n" __xchg()
/linux-4.1.27/arch/arc/include/asm/
H A Duaccess.h66 case 1: __arc_get_user_one(*(k), u, "ldb", __ret); break; \
184 "1: ldb.ab %1, [%3, 1] \n" __arc_copy_from_user()
315 "18: ldb.ab %3, [%2,2] \n" __arc_copy_from_user()
363 "18: ldb.ab %5, [%2,1] \n" /* 1 byte left */ __arc_copy_from_user()
414 " ldb.ab %1, [%3, 1] \n" __arc_copy_to_user()
540 " ldb.ab %3, [%2,1] \n" __arc_copy_to_user()
588 " ldb.ab %5, [%2,1] \n" /* 1 byte left */ __arc_copy_to_user()
671 "1: ldb.ab %3, [%2, 1] \n" __arc_strncpy_from_user()
699 "1: ldb.ab %3, [%0, 1] \n" __arc_strnlen_user()
H A Dio.h33 " ldb%U1 %0, %1 \n" __raw_readb()
/linux-4.1.27/arch/m32r/include/asm/
H A Dcmpxchg.h28 "ldb %0, @%2 \n\t" __xchg()
81 "ldb %0, @%2 \n\t" __xchg_local()
H A Duaccess.h446 "2: ldb r14, @%1 ; byte_copy \n" \
503 "2: ldb r14, @%1 ; byte_copy \n" \
/linux-4.1.27/drivers/scsi/aic7xxx/aicasm/
H A DMakefile13 LIBS= -ldb
/linux-4.1.27/arch/unicore32/kernel/
H A Ddebug.S71 ldb.w r1, [r0]+, #1
/linux-4.1.27/drivers/ntb/
H A Dntb_hw.c733 ndev->reg_ofs.ldb = ndev->reg_base + SNB_PDOORBELL_OFFSET; ntb_xeon_setup()
907 ndev->reg_ofs.ldb = ndev->reg_base + SNB_PDOORBELL_OFFSET; ntb_xeon_setup()
938 ndev->reg_ofs.ldb = ndev->reg_base + SNB_SDOORBELL_OFFSET; ntb_xeon_setup()
1006 ndev->reg_ofs.ldb = ndev->reg_base + BWD_PDOORBELL_OFFSET; ntb_bwd_setup()
1080 writeq((u64) 1 << db_cb->db_num, ndev->reg_ofs.ldb); bwd_callback_msix_irq()
1106 (db_cb->db_num * ndev->bits_per_vector), ndev->reg_ofs.ldb); xeon_callback_msix_irq()
1124 writew(1 << SNB_LINK_DB, ndev->reg_ofs.ldb); xeon_event_msix_irq()
1135 u64 ldb = readq(ndev->reg_ofs.ldb); ntb_interrupt() local
1137 dev_dbg(&ndev->pdev->dev, "irq %d - ldb = %Lx\n", irq, ldb); ntb_interrupt()
1139 while (ldb) { ntb_interrupt()
1140 i = __ffs(ldb); ntb_interrupt()
1141 ldb &= ldb - 1; ntb_interrupt()
1145 u16 ldb = readw(ndev->reg_ofs.ldb); ntb_interrupt() local
1147 dev_dbg(&ndev->pdev->dev, "irq %d - ldb = %x\n", irq, ldb); ntb_interrupt()
1149 if (ldb & SNB_DB_HW_LINK) { ntb_interrupt()
1151 ldb &= ~SNB_DB_HW_LINK; ntb_interrupt()
1154 while (ldb) { ntb_interrupt()
1155 i = __ffs(ldb); ntb_interrupt()
1156 ldb &= ldb - 1; ntb_interrupt()
H A Dntb_hw.h128 void __iomem *ldb; member in struct:ntb_device::__anon8243
/linux-4.1.27/arch/arc/kernel/
H A Dunaligned.c32 "1: ldb.ab %1, [%2, 1]\n" \
232 /* ldb/stb should not have unaligned exception */ misaligned_fixup()
/linux-4.1.27/arch/parisc/include/asm/
H A Duaccess.h91 case 1: __get_kernel_asm("ldb", ptr); break; \
100 case 1: __get_user_asm("ldb", ptr); break; \
/linux-4.1.27/arch/unicore32/boot/compressed/
H A Dhead.S174 2001: ldb.w r1, [r0]+, #1
/linux-4.1.27/arch/unicore32/mm/
H A Dalignment.c71 "1: ldb.u %1, [%2], #1\n" \
87 "1: ldb.u %1, [%2], #1\n" \
/linux-4.1.27/arch/parisc/kernel/
H A Dsyscall.S707 4: ldb 0(%sr3,%r25), %r25
709 5: ldb 0(%sr3,%r24), %r24
795 13: ldb,ma 0(%sr3,%r26), %r29
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_dir2_leaf.c382 xfs_dir2_db_t ldb; /* leaf block's bno */ xfs_dir2_block_to_leaf() local
404 ldb = xfs_dir2_da_to_db(args->geo, blkno); xfs_dir2_block_to_leaf()
405 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); xfs_dir2_block_to_leaf()
409 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); xfs_dir2_block_to_leaf()
/linux-4.1.27/arch/m32r/kernel/
H A Dptrace.c520 "ldb r1, @r0 ; invalidate check \n\t" invalidate_cache()
/linux-4.1.27/tools/net/
H A Dbpf_dbg.c147 [BPF_LD_B] = "ldb",

Completed in 970 milliseconds