Home
last modified time | relevance | path

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

123

/drivers/media/video/
Dsaa7146.h95 #define saawrite(dat,adr) writel((dat), saa->saa7146_adr+(adr)) argument
98 #define saawrite(dat,adr) writel((dat), saa->saa7146_mem+(adr)) argument
102 #define saaand(dat,adr) saawrite((dat) & saaread(adr), adr) argument
103 #define saaor(dat,adr) saawrite((dat) | saaread(adr), adr) argument
104 #define saaaor(dat,mask,adr) saawrite((dat) | ((mask) & saaread(adr)), adr) argument
/drivers/video/
Dcfbfillrect.c150 unsigned long val = pat, dat; in bitfill_aligned_rev() local
163 dat = FB_READL(dst); in bitfill_aligned_rev()
164 FB_WRITEL(comp(dat ^ val, dat, first), dst); in bitfill_aligned_rev()
169 dat = FB_READL(dst); in bitfill_aligned_rev()
170 FB_WRITEL(comp(dat ^ val, dat, first), dst); in bitfill_aligned_rev()
202 dat = FB_READL(dst); in bitfill_aligned_rev()
203 FB_WRITEL(comp(dat ^ val, dat, last), dst); in bitfill_aligned_rev()
221 unsigned long first, last, dat; in bitfill_unaligned_rev() local
233 dat = FB_READL(dst); in bitfill_unaligned_rev()
234 FB_WRITEL(comp(dat ^ pat, dat, first), dst); in bitfill_unaligned_rev()
[all …]
/drivers/staging/iio/impedance-analyzer/
Dad5933.c156 unsigned char dat = st->ctrl_hb | cmd; in ad5933_cmd() local
159 AD5933_REG_CONTROL_HB, 1, &dat); in ad5933_cmd()
164 unsigned char dat = st->ctrl_lb | AD5933_CTRL_RESET; in ad5933_reset() local
166 AD5933_REG_CONTROL_LB, 1, &dat); in ad5933_reset()
194 } dat; in ad5933_set_freq() local
210 dat.d32 = cpu_to_be32(freqreg); in ad5933_set_freq()
211 return ad5933_i2c_write(st->client, reg, 3, &dat.d8[1]); in ad5933_set_freq()
216 unsigned short dat; in ad5933_setup() local
232 dat = cpu_to_be16(st->settling_cycles); in ad5933_setup()
235 AD5933_REG_SETTLING_CYCLES, 2, (u8 *)&dat); in ad5933_setup()
[all …]
/drivers/mtd/nand/
Djz4740_nand.c77 static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in jz_nand_cmd_ctrl() argument
99 if (dat != NAND_CMD_NONE) in jz_nand_cmd_ctrl()
100 writeb(dat, chip->IO_ADDR_W); in jz_nand_cmd_ctrl()
137 static int jz_nand_calculate_ecc_rs(struct mtd_info *mtd, const uint8_t *dat, in jz_nand_calculate_ecc_rs() argument
172 static void jz_nand_correct_data(uint8_t *dat, int index, int mask) in jz_nand_correct_data() argument
179 data = dat[index]; in jz_nand_correct_data()
180 data |= dat[index+1] << 8; in jz_nand_correct_data()
186 dat[index] = data & 0xff; in jz_nand_correct_data()
187 dat[index+1] = (data >> 8) & 0xff; in jz_nand_correct_data()
190 static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, in jz_nand_correct_ecc_rs() argument
[all …]
Dbf5xx_nand.c226 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data_256() argument
285 data = *(dat + failing_byte); in bf5xx_nand_correct_data_256()
287 *(dat + failing_byte) = data; in bf5xx_nand_correct_data_256()
305 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data() argument
311 ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data()
315 dat += 256; in bf5xx_nand_correct_data()
318 ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data()
330 const u_char *dat, u_char *ecc_code) in bf5xx_nand_calculate_ecc() argument
Dcmx270_nand.c106 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, in cmx270_hwcontrol() argument
131 if (dat != NAND_CMD_NONE) in cmx270_hwcontrol()
132 writel((dat << 16), this->IO_ADDR_W); in cmx270_hwcontrol()
Dr852.c336 void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) in r852_cmdctl() argument
360 if (dat == NAND_CMD_ERASE1) in r852_cmdctl()
368 if (dat == NAND_CMD_SEQIN && (dev->ctlreg & R852_CTL_COMMAND)) { in r852_cmdctl()
373 if (dat != NAND_CMD_NONE) in r852_cmdctl()
374 r852_write_reg(dev, R852_DATALINE, dat); in r852_cmdctl()
453 int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in r852_ecc_calculate() argument
485 int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, in r852_ecc_correct() argument
525 dat[err_byte] ^= in r852_ecc_correct()
530 dat += 256; in r852_ecc_correct()
/drivers/net/ethernet/freescale/fs_enet/
Dmii-bitbang.c33 __be32 __iomem *dat; member
74 return bb_read(bitbang->dat, bitbang->mdio_msk); in mdio_read()
82 bb_set(bitbang->dat, bitbang->mdio_msk); in mdio()
84 bb_clr(bitbang->dat, bitbang->mdio_msk); in mdio()
87 in_be32(bitbang->dat); in mdio()
95 bb_set(bitbang->dat, bitbang->mdc_msk); in mdc()
97 bb_clr(bitbang->dat, bitbang->mdc_msk); in mdc()
100 in_be32(bitbang->dat); in mdc()
146 bitbang->dat = bitbang->dir + 4; in fs_mii_bitbang_init()
/drivers/staging/sm7xx/
Dsmtcfb.h42 #define smtc_mmiowb(dat, reg) writeb(dat, smtc_RegBaseAddress + reg) argument
43 #define smtc_mmioww(dat, reg) writew(dat, smtc_RegBaseAddress + reg) argument
44 #define smtc_mmiowl(dat, reg) writel(dat, smtc_RegBaseAddress + reg) argument
/drivers/media/video/zoran/
Dzoran.h394 #define btwrite(dat,adr) writel((dat), zr->zr36057_mem+(adr)) argument
397 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
398 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
399 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
/drivers/leds/
Dleds-atmel-pwm.c55 const struct gpio_led *dat = pdata->leds + i; in pwmled_probe() local
58 led->cdev.name = dat->name; in pwmled_probe()
61 led->cdev.default_trigger = dat->default_trigger; in pwmled_probe()
63 led->active_low = dat->active_low; in pwmled_probe()
65 status = pwm_channel_alloc(dat->gpio, &led->pwmc); in pwmled_probe()
/drivers/media/video/bt8xx/
Dbttvp.h521 #define btwrite(dat,adr) writel((dat), btv->bt848_mmio+(adr)) argument
524 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
525 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
526 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
/drivers/gpio/
Dgpio-samsung.c553 unsigned long dat; in samsung_gpiolib_2bit_output() local
558 dat = __raw_readl(base + 0x04); in samsung_gpiolib_2bit_output()
559 dat &= ~(1 << offset); in samsung_gpiolib_2bit_output()
561 dat |= 1 << offset; in samsung_gpiolib_2bit_output()
562 __raw_writel(dat, base + 0x04); in samsung_gpiolib_2bit_output()
569 __raw_writel(dat, base + 0x04); in samsung_gpiolib_2bit_output()
613 unsigned long dat; in samsung_gpiolib_4bit_output() local
619 dat = __raw_readl(base + GPIODAT_OFF); in samsung_gpiolib_4bit_output()
622 dat |= 1 << offset; in samsung_gpiolib_4bit_output()
624 dat &= ~(1 << offset); in samsung_gpiolib_4bit_output()
[all …]
Dgpio-generic.c307 void __iomem *dat, in bgpio_setup_io() argument
312 bgc->reg_dat = dat; in bgpio_setup_io()
365 unsigned long sz, void __iomem *dat, void __iomem *set, in bgpio_init() argument
384 ret = bgpio_setup_io(bgc, dat, set, clr); in bgpio_init()
446 void __iomem *dat; in bgpio_pdev_probe() local
463 dat = bgpio_map(pdev, "dat", sz, &err); in bgpio_pdev_probe()
464 if (!dat) in bgpio_pdev_probe()
489 err = bgpio_init(bgc, dev, sz, dat, set, clr, dirout, dirin, be); in bgpio_pdev_probe()
/drivers/media/dvb/bt8xx/
Dbt878.h152 #define bmtwrite(dat,adr) io_st_le32((adr),(dat)) argument
155 #define bmtwrite(dat,adr) writel((dat), (adr)) argument
Dbt878.c68 #define btwrite(dat,adr) bmtwrite((dat), (bt->bt878_mem+(adr))) argument
71 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
72 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
73 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
/drivers/media/common/tuners/
Dmax2165.c110 u8 dat[3]; in max2165_read_rom_table() local
115 max2165_read_reg(priv, REG_ROM_TABLE_DATA, &dat[i]); in max2165_read_rom_table()
118 priv->tf_ntch_low_cfg = dat[0] >> 4; in max2165_read_rom_table()
119 priv->tf_ntch_hi_cfg = dat[0] & 0x0F; in max2165_read_rom_table()
120 priv->tf_balun_low_ref = dat[1] & 0x0F; in max2165_read_rom_table()
121 priv->tf_balun_hi_ref = dat[1] >> 4; in max2165_read_rom_table()
122 priv->bb_filter_7mhz_cfg = dat[2] & 0x0F; in max2165_read_rom_table()
123 priv->bb_filter_8mhz_cfg = dat[2] >> 4; in max2165_read_rom_table()
/drivers/net/can/softing/
Dsofting_fw.c150 const uint8_t *mem, *end, *dat; in softing_load_fw() local
168 ret = fw_parse(&mem, &type, &addr, &len, &dat); in softing_load_fw()
173 if (strncmp("Structured Binary Format, Softing GmbH" , dat, len)) { in softing_load_fw()
179 ret = fw_parse(&mem, &type, &addr, &len, &dat); in softing_load_fw()
196 memcpy_toio(&dpram[addr + offset], dat, len); in softing_load_fw()
210 if (memcmp(buf, dat, len)) { in softing_load_fw()
232 const uint8_t *mem, *end, *dat; in softing_load_app_fw() local
251 ret = fw_parse(&mem, &type, &addr, &len, &dat); in softing_load_app_fw()
260 if (strncmp("Structured Binary Format, Softing GmbH", dat, len)) { in softing_load_app_fw()
262 len, dat); in softing_load_app_fw()
[all …]
/drivers/media/dvb/dvb-usb/
Daf9005-remote.c91 u8 cust, dat, invdat; in af9005_rc_decode() local
127 dat = (result >> 8) & 0xff; in af9005_rc_decode()
129 if (dat != invdat) { in af9005_rc_decode()
135 && rc5_data(&rc_map_af9005_table[i]) == dat) { in af9005_rc_decode()
/drivers/media/dvb/frontends/
Datbm8830.c124 u8 dat; in set_if_freq() local
139 atbm8830_read_reg(priv, REG_ADC_CONFIG, &dat); in set_if_freq()
140 dat &= 0xFC; in set_if_freq()
141 atbm8830_write_reg(priv, REG_ADC_CONFIG, dat); in set_if_freq()
146 atbm8830_read_reg(priv, REG_ADC_CONFIG, &dat); in set_if_freq()
147 dat &= 0xFC; in set_if_freq()
148 dat |= 0x02; in set_if_freq()
149 atbm8830_write_reg(priv, REG_ADC_CONFIG, dat); in set_if_freq()
/drivers/media/dvb/mantis/
Dmantis_common.h56 #define mwrite(dat, addr) writel((dat), addr) argument
59 #define mmwrite(dat, addr) mwrite((dat), (mantis->mmio + (addr))) argument
/drivers/rtc/
Drtc-tx4939.c61 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_mmss()
87 buf[i] = __raw_readl(&rtcreg->dat); in tx4939_rtc_read_time()
119 __raw_writel(buf[i], &rtcreg->dat); in tx4939_rtc_set_alarm()
145 buf[i] = __raw_readl(&rtcreg->dat); in tx4939_rtc_read_alarm()
205 *buf++ = __raw_readl(&rtcreg->dat); in tx4939_rtc_nvram_read()
224 __raw_writel(*buf++, &rtcreg->dat); in tx4939_rtc_nvram_write()
/drivers/media/video/pvrusb2/
Dpvrusb2-i2c-core.c207 u8 dat[4]; in i2c_24xxx_ir() local
237 dat[0] = hdw->cmd_buffer[0]; in i2c_24xxx_ir()
238 dat[1] = hdw->cmd_buffer[1]; in i2c_24xxx_ir()
239 dat[2] = hdw->cmd_buffer[2]; in i2c_24xxx_ir()
240 dat[3] = hdw->cmd_buffer[3]; in i2c_24xxx_ir()
249 if (dat[0] != 1) { in i2c_24xxx_ir()
257 val = dat[1]; in i2c_24xxx_ir()
259 val |= dat[2]; in i2c_24xxx_ir()
/drivers/usb/gadget/
Dfsl_qe_udc.h233 #define frame_set_data(frm, dat) (frm->data = dat) argument
239 #define frame_set_privdata(frm, dat) (frm->privdata = dat) argument
/drivers/net/wireless/
Dmac80211_hwsim.c1082 static int hwsim_fops_ps_write(void *dat, u64 val);
1296 static void hwsim_send_ps_poll(void *dat, u8 *mac, struct ieee80211_vif *vif) in hwsim_send_ps_poll() argument
1298 struct mac80211_hwsim_data *data = dat; in hwsim_send_ps_poll()
1373 static void hwsim_send_nullfunc_ps(void *dat, u8 *mac, in hwsim_send_nullfunc_ps() argument
1376 struct mac80211_hwsim_data *data = dat; in hwsim_send_nullfunc_ps()
1381 static void hwsim_send_nullfunc_no_ps(void *dat, u8 *mac, in hwsim_send_nullfunc_no_ps() argument
1384 struct mac80211_hwsim_data *data = dat; in hwsim_send_nullfunc_no_ps()
1389 static int hwsim_fops_ps_read(void *dat, u64 *val) in hwsim_fops_ps_read() argument
1391 struct mac80211_hwsim_data *data = dat; in hwsim_fops_ps_read()
1396 static int hwsim_fops_ps_write(void *dat, u64 val) in hwsim_fops_ps_write() argument
[all …]

123