Home
last modified time | relevance | path

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

12

/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() argument
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()
Dftl.c1045 static void ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ftl_add_mtd() argument
1069 partition->mbd.tr = tr; in ftl_add_mtd()
Dsm_ftl.c1129 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in sm_add_mtd() argument
1180 trans->tr = tr; in sm_add_mtd()
Dmtdswap.c1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdswap_add_mtd() argument
1519 mbd_dev->tr = tr; in mtdswap_add_mtd()
/drivers/staging/wilc1000/
Dlinux_wlan_spi.c135 struct spi_transfer tr = { in linux_spi_write() local
143 tr.rx_buf = r_buffer; in linux_spi_write()
150 spi_message_add_tail(&tr, &msg); in linux_spi_write()
161 struct spi_transfer tr = { in linux_spi_write() local
168 tr.rx_buf = r_buffer; in linux_spi_write()
175 spi_message_add_tail(&tr, &msg); in linux_spi_write()
203 struct spi_transfer tr = { in linux_spi_write() local
213 tr.rx_buf = r_buffer; in linux_spi_write()
222 spi_message_add_tail(&tr, &msg); in linux_spi_write()
264 struct spi_transfer tr = { in linux_spi_read() local
[all …]
/drivers/net/ethernet/toshiba/
Dtc35815.c507 struct tc35815_regs __iomem *tr = in tc_mdio_read() local
511 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read()
513 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_read()
518 return tc_readl(&tr->MD_Data) & 0xffff; in tc_mdio_read()
524 struct tc35815_regs __iomem *tr = in tc_mdio_write() local
528 tc_writel(val, &tr->MD_Data); in tc_mdio_write()
530 &tr->MD_CA); in tc_mdio_write()
532 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_write()
550 struct tc35815_regs __iomem *tr = in tc_handle_link_change() local
554 reg = tc_readl(&tr->MAC_Ctl); in tc_handle_link_change()
[all …]
/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 *trend = tr; in __ti_thermal_get_trend()
265 long tr; in ti_thermal_get_trend() local
267 ret = __ti_thermal_get_trend(thermal->devdata, &tr); in ti_thermal_get_trend()
271 if (tr > 0) in ti_thermal_get_trend()
273 else if (tr < 0) in ti_thermal_get_trend()
/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/ide/
Dpmac.c517 u32 tr = kauai_lookup_timing(shasta_pio_timings, cycle_time); in pmac_ide_set_pio_mode() local
518 t = (t & ~TR_133_PIOREG_PIO_MASK) | tr; in pmac_ide_set_pio_mode()
524 u32 tr = kauai_lookup_timing(kauai_pio_timings, cycle_time); in pmac_ide_set_pio_mode() local
525 t = (t & ~TR_100_PIOREG_PIO_MASK) | tr; in pmac_ide_set_pio_mode()
612 u32 tr; in set_timings_udma_ata6() local
616 tr = kauai_lookup_timing(kauai_udma_timings, (int)t->udma); in set_timings_udma_ata6()
617 *ultra_timings = ((*ultra_timings) & ~TR_100_UDMAREG_UDMA_MASK) | tr; in set_timings_udma_ata6()
630 u32 tr; in set_timings_udma_shasta() local
634 tr = kauai_lookup_timing(shasta_udma133_timings, (int)t->udma); in set_timings_udma_shasta()
635 *ultra_timings = ((*ultra_timings) & ~TR_133_UDMAREG_UDMA_MASK) | tr; in set_timings_udma_shasta()
[all …]
/drivers/android/
Dbinder.c2884 struct binder_transaction_data *tr, int reply, in binder_transaction() argument
2910 e->call_type = reply ? 2 : !!(tr->flags & TF_ONE_WAY); in binder_transaction()
2913 e->target_handle = tr->target.handle; in binder_transaction()
2914 e->data_size = tr->data_size; in binder_transaction()
2915 e->offsets_size = tr->offsets_size; in binder_transaction()
2972 if (tr->target.handle) { in binder_transaction()
2983 ref = binder_get_ref_olocked(proc, tr->target.handle, in binder_transaction()
3037 if (!(tr->flags & TF_ONE_WAY) && thread->transaction_stack) { in binder_transaction()
3103 (u64)tr->data.ptr.buffer, in binder_transaction()
3104 (u64)tr->data.ptr.offsets, in binder_transaction()
[all …]
/drivers/mmc/card/
Dmmc_test.c520 struct mmc_test_transfer_result *tr; in mmc_test_save_transfer_result() local
525 tr = kmalloc(sizeof(struct mmc_test_transfer_result), GFP_KERNEL); in mmc_test_save_transfer_result()
526 if (!tr) in mmc_test_save_transfer_result()
529 tr->count = count; in mmc_test_save_transfer_result()
530 tr->sectors = sectors; in mmc_test_save_transfer_result()
531 tr->ts = ts; in mmc_test_save_transfer_result()
532 tr->rate = rate; in mmc_test_save_transfer_result()
533 tr->iops = iops; in mmc_test_save_transfer_result()
535 list_add_tail(&tr->link, &test->gr->tr_lst); in mmc_test_save_transfer_result()
2716 struct mmc_test_transfer_result *tr, *trs; in mmc_test_free_result() local
[all …]
/drivers/net/wireless/
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/brcm80211/brcmfmac/
Dsdio.c3062 struct brcmf_trap_info tr; in brcmf_sdio_trap_info() local
3069 error = brcmf_sdiod_ramrw(bus->sdiodev, false, sh->trap_addr, (u8 *)&tr, in brcmf_sdio_trap_info()
3080 le32_to_cpu(tr.type), le32_to_cpu(tr.epc), in brcmf_sdio_trap_info()
3081 le32_to_cpu(tr.cpsr), le32_to_cpu(tr.spsr), in brcmf_sdio_trap_info()
3082 le32_to_cpu(tr.r13), le32_to_cpu(tr.r14), in brcmf_sdio_trap_info()
3083 le32_to_cpu(tr.pc), sh->trap_addr, in brcmf_sdio_trap_info()
3084 le32_to_cpu(tr.r0), le32_to_cpu(tr.r1), in brcmf_sdio_trap_info()
3085 le32_to_cpu(tr.r2), le32_to_cpu(tr.r3), in brcmf_sdio_trap_info()
3086 le32_to_cpu(tr.r4), le32_to_cpu(tr.r5), in brcmf_sdio_trap_info()
3087 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/spi/
Dspi-fsl-espi.c274 struct fsl_espi_transfer *tr) in fsl_espi_do_trans() argument
278 struct fsl_espi_transfer *espi_trans = tr; in fsl_espi_do_trans()
/drivers/usb/gadget/udc/
Dlpc32xx_udc.c1542 u32 tr, bufferspace; in udc_ep0_out_req() local
1565 tr = udc_read_hwep(udc, EP_OUT, req->req.buf + req->req.actual, in udc_ep0_out_req()
1569 if (tr < ep0->ep.maxpacket) { in udc_ep0_out_req()

12