Home
last modified time | relevance | path

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

/drivers/media/radio/
Dradio-timb.c57 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_tuner() local
58 return v4l2_subdev_call(tr->sd_tuner, tuner, g_tuner, v); in timbradio_vidioc_g_tuner()
64 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_tuner() local
65 return v4l2_subdev_call(tr->sd_tuner, tuner, s_tuner, v); in timbradio_vidioc_s_tuner()
71 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_frequency() local
72 return v4l2_subdev_call(tr->sd_tuner, tuner, s_frequency, f); in timbradio_vidioc_s_frequency()
78 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_frequency() local
79 return v4l2_subdev_call(tr->sd_tuner, tuner, g_frequency, f); in timbradio_vidioc_g_frequency()
104 struct timbradio *tr; in timbradio_probe() local
113 tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL); in timbradio_probe()
[all …]
Dradio-trust.c58 struct trust *tr = kzalloc(sizeof(*tr), GFP_KERNEL); in trust_alloc() local
60 return tr ? &tr->isa : NULL; in trust_alloc()
67 #define TR_DELAY do { inb(tr->isa.io); inb(tr->isa.io); inb(tr->isa.io); } while (0)
68 #define TR_SET_SCL outb(tr->ioval |= 2, tr->isa.io)
69 #define TR_CLR_SCL outb(tr->ioval &= 0xfd, tr->isa.io)
70 #define TR_SET_SDA outb(tr->ioval |= 1, tr->isa.io)
71 #define TR_CLR_SDA outb(tr->ioval &= 0xfe, tr->isa.io)
73 static void write_i2c(struct trust *tr, int n, ...) in write_i2c() argument
121 struct trust *tr = container_of(isa, struct trust, isa); in trust_s_mute_volume() local
123 tr->ioval = (tr->ioval & 0xf7) | (mute << 3); in trust_s_mute_volume()
[all …]
/drivers/input/touchscreen/
Dtouchright.c49 struct tr { struct
60 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() local
61 struct input_dev *dev = tr->dev; in tr_interrupt()
63 tr->data[tr->idx] = data; in tr_interrupt()
65 if ((tr->data[0] & TR_FORMAT_STATUS_MASK) == TR_FORMAT_STATUS_BYTE) { in tr_interrupt()
66 if (++tr->idx == TR_LENGTH) { in tr_interrupt()
68 (tr->data[1] << 5) | (tr->data[2] >> 1)); in tr_interrupt()
70 (tr->data[3] << 5) | (tr->data[4] >> 1)); in tr_interrupt()
72 tr->data[0] & TR_FORMAT_TOUCH_BIT); in tr_interrupt()
74 tr->idx = 0; in tr_interrupt()
[all …]
/drivers/mtd/
Dmtd_blkdevs.c76 static int do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() argument
83 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request()
84 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request()
91 return tr->flush(dev); in do_blktrans_request()
98 return tr->discard(dev, block, nsect); in do_blktrans_request()
101 for (; nsect > 0; nsect--, block++, buf += tr->blksize) in do_blktrans_request()
102 if (tr->readsect(dev, block, buf)) in do_blktrans_request()
107 if (!tr->writesect) in do_blktrans_request()
111 for (; nsect > 0; nsect--, block++, buf += tr->blksize) in do_blktrans_request()
112 if (tr->writesect(dev, block, buf)) in do_blktrans_request()
[all …]
Dmtdblock_ro.c49 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd() argument
60 dev->tr = tr; in mtdblock_add_mtd()
Dmtdblock.c340 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd() argument
351 dev->mbd.tr = tr; in mtdblock_add_mtd()
Dssfdc.c287 static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ssfdcr_add_mtd() argument
308 ssfdc->mbd.tr = tr; in ssfdcr_add_mtd()
Dnftlcore.c48 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in nftl_add_mtd() argument
69 nftl->mbd.tr = tr; in nftl_add_mtd()
Drfd_ftl.c757 static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in rfd_ftl_add_mtd() argument
782 part->mbd.tr = tr; in rfd_ftl_add_mtd()
Dinftlcore.c48 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in inftl_add_mtd() argument
76 inftl->mbd.tr = tr; in inftl_add_mtd()
Dsm_ftl.c1130 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in sm_add_mtd() argument
1181 trans->tr = tr; in sm_add_mtd()
Dftl.c1041 static void ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ftl_add_mtd() argument
1065 partition->mbd.tr = tr; in ftl_add_mtd()
Dmtdswap.c1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdswap_add_mtd() argument
1511 mbd_dev->tr = tr; in mtdswap_add_mtd()
/drivers/net/ethernet/toshiba/
Dtc35815.c505 struct tc35815_regs __iomem *tr = in tc_mdio_read() local
509 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read()
511 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_read()
516 return tc_readl(&tr->MD_Data) & 0xffff; in tc_mdio_read()
522 struct tc35815_regs __iomem *tr = in tc_mdio_write() local
526 tc_writel(val, &tr->MD_Data); in tc_mdio_write()
528 &tr->MD_CA); in tc_mdio_write()
530 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_write()
548 struct tc35815_regs __iomem *tr = in tc_handle_link_change() local
552 reg = tc_readl(&tr->MAC_Ctl); in tc_handle_link_change()
[all …]
/drivers/net/fddi/skfp/
Dhwt.c166 u_short tr ; in hwt_read() local
171 tr = (u_short)((inpd(ADDR(B2_TI_VAL))/200) & 0xffff) ; in hwt_read()
175 if ((tr > smc->hw.t_start) || (is & IS_TIMINT)) { in hwt_read()
180 smc->hw.t_stop = smc->hw.t_start - tr ; in hwt_read()
/drivers/android/
Dbinder.c2885 struct binder_transaction_data *tr, int reply, in binder_transaction() argument
2909 e->call_type = reply ? 2 : !!(tr->flags & TF_ONE_WAY); in binder_transaction()
2912 e->target_handle = tr->target.handle; in binder_transaction()
2913 e->data_size = tr->data_size; in binder_transaction()
2914 e->offsets_size = tr->offsets_size; in binder_transaction()
2971 if (tr->target.handle) { in binder_transaction()
2982 ref = binder_get_ref_olocked(proc, tr->target.handle, in binder_transaction()
3022 if (!(tr->flags & TF_ONE_WAY) && thread->transaction_stack) { in binder_transaction()
3088 (u64)tr->data.ptr.buffer, in binder_transaction()
3089 (u64)tr->data.ptr.offsets, in binder_transaction()
[all …]
/drivers/ide/
Dpmac.c516 u32 tr = kauai_lookup_timing(shasta_pio_timings, cycle_time); in pmac_ide_set_pio_mode() local
517 t = (t & ~TR_133_PIOREG_PIO_MASK) | tr; in pmac_ide_set_pio_mode()
523 u32 tr = kauai_lookup_timing(kauai_pio_timings, cycle_time); in pmac_ide_set_pio_mode() local
524 t = (t & ~TR_100_PIOREG_PIO_MASK) | tr; in pmac_ide_set_pio_mode()
611 u32 tr; in set_timings_udma_ata6() local
615 tr = kauai_lookup_timing(kauai_udma_timings, (int)t->udma); in set_timings_udma_ata6()
616 *ultra_timings = ((*ultra_timings) & ~TR_100_UDMAREG_UDMA_MASK) | tr; in set_timings_udma_ata6()
629 u32 tr; in set_timings_udma_shasta() local
633 tr = kauai_lookup_timing(shasta_udma133_timings, (int)t->udma); in set_timings_udma_shasta()
634 *ultra_timings = ((*ultra_timings) & ~TR_133_UDMAREG_UDMA_MASK) | tr; in set_timings_udma_shasta()
[all …]
/drivers/staging/wilc1000/
Dwilc_spi.c171 struct spi_transfer tr = { in wilc_spi_tx() local
181 tr.rx_buf = r_buffer; in wilc_spi_tx()
188 spi_message_add_tail(&tr, &msg); in wilc_spi_tx()
212 struct spi_transfer tr = { in wilc_spi_rx() local
223 tr.tx_buf = t_buffer; in wilc_spi_rx()
229 spi_message_add_tail(&tr, &msg); in wilc_spi_rx()
252 struct spi_transfer tr = { in wilc_spi_tx_rx() local
266 spi_message_add_tail(&tr, &msg); in wilc_spi_tx_rx()
/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c246 int id, tr, ret = 0; in __ti_thermal_get_trend() local
251 ret = ti_bandgap_get_trend(bgp, id, &tr); in __ti_thermal_get_trend()
255 if (tr > 0) in __ti_thermal_get_trend()
257 else if (tr < 0) in __ti_thermal_get_trend()
/drivers/mmc/card/
Dmmc_test.c545 struct mmc_test_transfer_result *tr; in mmc_test_save_transfer_result() local
550 tr = kmalloc(sizeof(struct mmc_test_transfer_result), GFP_KERNEL); in mmc_test_save_transfer_result()
551 if (!tr) in mmc_test_save_transfer_result()
554 tr->count = count; in mmc_test_save_transfer_result()
555 tr->sectors = sectors; in mmc_test_save_transfer_result()
556 tr->ts = ts; in mmc_test_save_transfer_result()
557 tr->rate = rate; in mmc_test_save_transfer_result()
558 tr->iops = iops; in mmc_test_save_transfer_result()
560 list_add_tail(&tr->link, &test->gr->tr_lst); in mmc_test_save_transfer_result()
3024 struct mmc_test_transfer_result *tr, *trs; in mmc_test_free_result() local
[all …]
/drivers/net/wireless/marvell/
Dmwl8k.c807 struct mwl8k_dma_data *tr; in mwl8k_remove_dma_header() local
810 tr = (struct mwl8k_dma_data *)skb->data; in mwl8k_remove_dma_header()
811 hdrlen = ieee80211_hdrlen(tr->wh.frame_control); in mwl8k_remove_dma_header()
813 if (hdrlen != sizeof(tr->wh)) { in mwl8k_remove_dma_header()
814 if (ieee80211_is_data_qos(tr->wh.frame_control)) { in mwl8k_remove_dma_header()
815 memmove(tr->data - hdrlen, &tr->wh, hdrlen - 2); in mwl8k_remove_dma_header()
816 *((__le16 *)(tr->data - 2)) = qos; in mwl8k_remove_dma_header()
818 memmove(tr->data - hdrlen, &tr->wh, hdrlen); in mwl8k_remove_dma_header()
822 if (hdrlen != sizeof(*tr)) in mwl8k_remove_dma_header()
823 skb_pull(skb, sizeof(*tr) - hdrlen); in mwl8k_remove_dma_header()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c2956 struct brcmf_trap_info tr; in brcmf_sdio_trap_info() local
2963 error = brcmf_sdiod_ramrw(bus->sdiodev, false, sh->trap_addr, (u8 *)&tr, in brcmf_sdio_trap_info()
2974 le32_to_cpu(tr.type), le32_to_cpu(tr.epc), in brcmf_sdio_trap_info()
2975 le32_to_cpu(tr.cpsr), le32_to_cpu(tr.spsr), in brcmf_sdio_trap_info()
2976 le32_to_cpu(tr.r13), le32_to_cpu(tr.r14), in brcmf_sdio_trap_info()
2977 le32_to_cpu(tr.pc), sh->trap_addr, in brcmf_sdio_trap_info()
2978 le32_to_cpu(tr.r0), le32_to_cpu(tr.r1), in brcmf_sdio_trap_info()
2979 le32_to_cpu(tr.r2), le32_to_cpu(tr.r3), in brcmf_sdio_trap_info()
2980 le32_to_cpu(tr.r4), le32_to_cpu(tr.r5), in brcmf_sdio_trap_info()
2981 le32_to_cpu(tr.r6), le32_to_cpu(tr.r7)); in brcmf_sdio_trap_info()
/drivers/scsi/
Dmesh.c641 int v, tr; in set_sdtr() local
662 tr = (ms->clk_freq + 250000) / 500000; in set_sdtr()
668 tr = ((ms->clk_freq / (v + 2)) + 199999) / 200000; in set_sdtr()
675 ms->conn_tgt, tr/10, tr%10); in set_sdtr()
/drivers/usb/gadget/udc/
Dlpc32xx_udc.c1496 u32 tr, bufferspace; in udc_ep0_out_req() local
1519 tr = udc_read_hwep(udc, EP_OUT, req->req.buf + req->req.actual, in udc_ep0_out_req()
1523 if (tr < ep0->ep.maxpacket) { in udc_ep0_out_req()
/drivers/net/ethernet/tile/
Dtilegx.c602 if (idesc->be || idesc->me || idesc->tr || idesc->ce) { in tile_net_handle_packet()