Home
last modified time | relevance | path

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

1234

/drivers/media/pci/ddbridge/
Dddbridge-i2c.h33 static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() argument
36 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_io()
38 { .addr = adr, .flags = I2C_M_RD, in i2c_io()
44 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() argument
47 struct i2c_msg msg = { .addr = adr, .flags = 0, in i2c_write()
53 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() argument
55 struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, in i2c_read()
62 u8 adr, u8 reg, u8 *val, u8 len) in i2c_read_regs() argument
64 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs()
66 { .addr = adr, .flags = I2C_M_RD, in i2c_read_regs()
[all …]
Dddbridge-io.h28 static inline u32 ddblreadl(struct ddb_link *link, u32 adr) in ddblreadl() argument
30 return readl(link->dev->regs + adr); in ddblreadl()
33 static inline void ddblwritel(struct ddb_link *link, u32 val, u32 adr) in ddblwritel() argument
35 writel(val, link->dev->regs + adr); in ddblwritel()
38 static inline u32 ddbreadl(struct ddb *dev, u32 adr) in ddbreadl() argument
40 return readl(dev->regs + adr); in ddbreadl()
43 static inline void ddbwritel(struct ddb *dev, u32 val, u32 adr) in ddbwritel() argument
45 writel(val, dev->regs + adr); in ddbwritel()
48 static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count) in ddbcpyto() argument
50 memcpy_toio(dev->regs + adr, src, count); in ddbcpyto()
[all …]
Dddbridge-ci.c183 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_creg() local
186 return i2c_write_reg(i2c, adr, 0x02, ci->port->creg); in write_creg()
194 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in read_attribute_mem_xo2() local
198 res = i2c_read_reg16(i2c, adr, 0x8000 | address, &val); in read_attribute_mem_xo2()
207 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_attribute_mem_xo2() local
209 return i2c_write_reg16(i2c, adr, 0x8000 | address, value); in write_attribute_mem_xo2()
217 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in read_cam_control_xo2() local
221 res = i2c_read_reg(i2c, adr, 0x20 | (address & 3), &val); in read_cam_control_xo2()
230 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_cam_control_xo2() local
232 return i2c_write_reg(i2c, adr, 0x20 | (address & 3), value); in write_cam_control_xo2()
[all …]
/drivers/mtd/chips/
Dcfi_cmdset_0002.c94 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
95 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
127 unsigned long adr) in cfi_check_err_status() argument
137 status = map_read(map, adr); in cfi_check_err_status()
541 unsigned long adr) in cfi_fixup_m29ew_erase_suspend() argument
546 map_write(map, CMD(0xF0), adr); in cfi_fixup_m29ew_erase_suspend()
622 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002() local
625 extp = (struct cfi_pri_amdstd*)cfi_read_pri(map, adr, sizeof(*extp), "Amd/Fujitsu"); in cfi_cmdset_0002()
879 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in get_chip() argument
893 if (chip_ready(map, chip, adr)) in get_chip()
[all …]
Dcfi_cmdset_0020.c124 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020() local
127 extp = (struct cfi_pri_intelext*)cfi_read_pri(map, adr, sizeof(*extp), "ST Microelectronics"); in cfi_cmdset_0020()
248 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len… in do_read_onechip() argument
257 adr += chip->start; in do_read_onechip()
260 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
362 map_copy_from(map, buf, adr, len); in do_read_onechip()
422 unsigned long adr, const u_char *buf, int len) in do_write_buffer() argument
431 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
435 adr += chip->start; in do_write_buffer()
436 cmd_adr = adr & ~(wbufsize-1); in do_write_buffer()
[all …]
Dcfi_cmdset_0001.c97 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
98 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
99 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
391 read_pri_intelext(struct map_info *map, __u16 adr) in read_pri_intelext() argument
399 extp = (struct cfi_pri_intelext *)cfi_read_pri(map, adr, extp_size, "Intel/Sharp"); in read_pri_intelext()
514 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001() local
517 extp = read_pri_intelext(map, adr); in cfi_cmdset_0001()
806 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in chip_ready() argument
822 status = map_read(map, adr); in chip_ready()
851 if ((adr & chip->in_progress_block_mask) == in chip_ready()
[all …]
Dfwh_lock.h30 unsigned long adr, int len, void *thunk) in fwh_xxlock_oneblock() argument
53 adr = (adr & ~0xffffUL) | 0x2; in fwh_xxlock_oneblock()
54 adr += chip->start - 0x400000; in fwh_xxlock_oneblock()
62 ret = get_chip(map, chip, adr, FL_LOCKING); in fwh_xxlock_oneblock()
70 map_write(map, CMD(xxlt->val), adr); in fwh_xxlock_oneblock()
74 put_chip(map, chip, adr); in fwh_xxlock_oneblock()
Dcfi_util.c299 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) in cfi_read_pri() argument
307 if (!adr) in cfi_read_pri()
310 printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); in cfi_read_pri()
325 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
363 unsigned long adr; in cfi_varsize_frob() local
412 adr = ofs - (chipnum << cfi->chipshift); in cfi_varsize_frob()
419 ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); in cfi_varsize_frob()
424 adr += size; in cfi_varsize_frob()
431 if (adr >> cfi->chipshift) { in cfi_varsize_frob()
432 adr = 0; in cfi_varsize_frob()
/drivers/mtd/maps/
Ddc21285.c80 static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write8() argument
84 *CSR_ROMWRITEREG = adr & 3; in dc21285_write8()
85 adr &= ~3; in dc21285_write8()
86 *(uint8_t*)(map->virt + adr) = d.x[0]; in dc21285_write8()
89 static void dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write16() argument
93 *CSR_ROMWRITEREG = adr & 3; in dc21285_write16()
94 adr &= ~3; in dc21285_write16()
95 *(uint16_t*)(map->virt + adr) = d.x[0]; in dc21285_write16()
98 static void dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write32() argument
102 *(uint32_t*)(map->virt + adr) = d.x[0]; in dc21285_write32()
Dlantiq-flash.c48 ltq_read16(struct map_info *map, unsigned long adr) in ltq_read16() argument
54 adr ^= 2; in ltq_read16()
56 temp.x[0] = *(u16 *)(map->virt + adr); in ltq_read16()
62 ltq_write16(struct map_info *map, map_word d, unsigned long adr) in ltq_write16() argument
67 adr ^= 2; in ltq_write16()
69 *(u16 *)(map->virt + adr) = d.x[0]; in ltq_write16()
Dpcmciamtd.c164 static void pcmcia_write8_remap(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write8_remap() argument
166 void __iomem *addr = remap_window(map, adr); in pcmcia_write8_remap()
171 pr_debug("adr = 0x%08lx (%p) data = 0x%02lx\n", adr, addr, d.x[0]); in pcmcia_write8_remap()
176 static void pcmcia_write16_remap(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write16_remap() argument
178 void __iomem *addr = remap_window(map, adr); in pcmcia_write16_remap()
182 pr_debug("adr = 0x%08lx (%p) data = 0x%04lx\n", adr, addr, d.x[0]); in pcmcia_write16_remap()
259 static void pcmcia_write8(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write8() argument
267 adr, win_base + adr, d.x[0]); in pcmcia_write8()
268 writeb(d.x[0], win_base + adr); in pcmcia_write8()
272 static void pcmcia_write16(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write16() argument
[all …]
Dixp4xx.c132 static void ixp4xx_probe_write16(struct map_info *map, map_word d, unsigned long adr) in ixp4xx_probe_write16() argument
134 if (!(adr & 1)) in ixp4xx_probe_write16()
135 flash_write16(d.x[0], map->virt + adr); in ixp4xx_probe_write16()
141 static void ixp4xx_write16(struct map_info *map, map_word d, unsigned long adr) in ixp4xx_write16() argument
143 flash_write16(d.x[0], map->virt + adr); in ixp4xx_write16()
/drivers/mtd/lpddr/
Dlpddr_cmds.c19 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
28 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
30 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
378 unsigned long adr, const struct kvec **pvec, in do_write_buffer() argument
397 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
403 adr -= word_gap; in do_write_buffer()
444 send_pfow_command(map, LPDDR_BUFF_PROGRAM, adr, wbufsize, NULL); in do_write_buffer()
449 map->name, ret, adr); in do_write_buffer()
458 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() argument
462 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
[all …]
/drivers/media/pci/bt8xx/
Dbttvp.h516 #define btwrite(dat,adr) writel((dat), btv->bt848_mmio+(adr)) argument
517 #define btread(adr) readl(btv->bt848_mmio+(adr)) argument
519 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
520 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
521 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
Dbt878.c51 #define btwrite(dat,adr) bmtwrite((dat), (bt->bt878_mem+(adr))) argument
52 #define btread(adr) bmtread(bt->bt878_mem+(adr)) argument
54 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
55 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
56 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
Dbt878.h133 #define bmtwrite(dat,adr) writel((dat), (adr)) argument
134 #define bmtread(adr) readl(adr) argument
/drivers/isdn/mISDN/
Dstack.c418 u_int protocol, struct sockaddr_mISDN *adr) in connect_layer1() argument
427 __func__, dev_name(&dev->dev), protocol, adr->dev, in connect_layer1()
428 adr->channel, adr->sapi, adr->tei); in connect_layer1()
438 rq.adr.channel = adr->channel; in connect_layer1()
456 u_int protocol, struct sockaddr_mISDN *adr) in connect_Bstack() argument
465 adr->dev, adr->channel, adr->sapi, in connect_Bstack()
466 adr->tei); in connect_Bstack()
471 rq.adr = *adr; in connect_Bstack()
485 rq2.adr = *adr; in connect_Bstack()
494 rq.adr = *adr; in connect_Bstack()
[all …]
/drivers/media/pci/ngene/
Dngene-cards.c44 static int i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() argument
47 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_io()
49 {.addr = adr, .flags = I2C_M_RD, in i2c_io()
54 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() argument
56 struct i2c_msg msg = {.addr = adr, .flags = 0, in i2c_write()
62 static int i2c_write_reg(struct i2c_adapter *adap, u8 adr, in i2c_write_reg() argument
67 return i2c_write(adap, adr, msg, 2); in i2c_write_reg()
70 static int i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() argument
72 struct i2c_msg msgs[1] = {{.addr = adr, .flags = I2C_M_RD, in i2c_read()
77 static int i2c_read_reg16(struct i2c_adapter *adapter, u8 adr, in i2c_read_reg16() argument
[all …]
Dngene-i2c.c31 static int ngene_command_i2c_read(struct ngene *dev, u8 adr, in ngene_command_i2c_read() argument
38 com.cmd.I2CRead.Device = adr << 1; in ngene_command_i2c_read()
48 if ((com.cmd.raw8[0] >> 1) != adr) in ngene_command_i2c_read()
58 static int ngene_command_i2c_write(struct ngene *dev, u8 adr, in ngene_command_i2c_write() argument
66 com.cmd.I2CRead.Device = adr << 1; in ngene_command_i2c_write()
/drivers/staging/wilc1000/
Dwilc_spi.c282 static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz, in spi_cmd_complete() argument
299 wb[1] = (u8)(adr >> 16); in spi_cmd_complete()
300 wb[2] = (u8)(adr >> 8); in spi_cmd_complete()
301 wb[3] = (u8)adr; in spi_cmd_complete()
306 wb[1] = (u8)(adr >> 8); in spi_cmd_complete()
309 wb[2] = (u8)adr; in spi_cmd_complete()
337 wb[1] = (u8)(adr >> 16); in spi_cmd_complete()
338 wb[2] = (u8)(adr >> 8); in spi_cmd_complete()
339 wb[3] = (u8)adr; in spi_cmd_complete()
347 wb[1] = (u8)(adr >> 16); in spi_cmd_complete()
[all …]
/drivers/media/dvb-frontends/
Dstv6111.c32 u8 adr; member
305 u8 adr, u8 *msg, int len, u8 *answ, int alen) in i2c_read() argument
307 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read()
309 { .addr = adr, .flags = I2C_M_RD, in i2c_read()
318 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() argument
320 struct i2c_msg msg = {.addr = adr, .flags = 0, in i2c_write()
336 return i2c_write(state->i2c, state->adr, d, len + 1); in write_regs()
343 return i2c_write(state->i2c, state->adr, d, 2); in write_reg()
348 return i2c_read(state->i2c, state->adr, &reg, 1, val, 1); in read_reg()
659 struct i2c_adapter *i2c, u8 adr) in stv6111_attach() argument
[all …]
/drivers/usb/gadget/udc/
Dpxa27x_udc.h281 #define PXA_EP_IN_BULK(i, adr, c, f, a) PXA_EP_BULK(i, adr, 1, c, f, a) argument
282 #define PXA_EP_OUT_BULK(i, adr, c, f, a) PXA_EP_BULK(i, adr, 0, c, f, a) argument
283 #define PXA_EP_IN_ISO(i, adr, c, f, a) PXA_EP_ISO(i, adr, 1, c, f, a) argument
284 #define PXA_EP_OUT_ISO(i, adr, c, f, a) PXA_EP_ISO(i, adr, 0, c, f, a) argument
285 #define PXA_EP_IN_INT(i, adr, c, f, a) PXA_EP_INT(i, adr, 1, c, f, a) argument
/drivers/scsi/
Datari_scsi.c102 static inline void SCSI_DMA_SETADR(unsigned long adr) in SCSI_DMA_SETADR() argument
104 st_dma.dma_lo = (unsigned char)adr; in SCSI_DMA_SETADR()
106 adr >>= 8; in SCSI_DMA_SETADR()
107 st_dma.dma_md = (unsigned char)adr; in SCSI_DMA_SETADR()
109 adr >>= 8; in SCSI_DMA_SETADR()
110 st_dma.dma_hi = (unsigned char)adr; in SCSI_DMA_SETADR()
116 unsigned long adr; in SCSI_DMA_GETADR() local
117 adr = st_dma.dma_lo; in SCSI_DMA_GETADR()
119 adr |= (st_dma.dma_md & 0xff) << 8; in SCSI_DMA_GETADR()
121 adr |= (st_dma.dma_hi & 0xff) << 16; in SCSI_DMA_GETADR()
[all …]
/drivers/isdn/hardware/mISDN/
Diohelper.h65 #define IOFUNC_MEMIO(name, hws, typ, adr) \ argument
68 return readb(((typ *)hw->adr) + off); \
72 writeb(val, ((typ *)hw->adr) + off); \
77 *dp++ = readb(((typ *)hw->adr) + off); \
82 writeb(*dp++, ((typ *)hw->adr) + off); \
/drivers/rtc/
Drtc-tx4939.c34 __u32 adr; member
75 __raw_writel(0, &rtcreg->adr); in tx4939_rtc_set_time()
101 __raw_writel(2, &rtcreg->adr); in tx4939_rtc_read_time()
127 __raw_writel(0, &rtcreg->adr); in tx4939_rtc_set_alarm()
153 __raw_writel(2, &rtcreg->adr); in tx4939_rtc_read_alarm()
212 __raw_writel(pos++, &rtcreg->adr); in tx4939_nvram_read()
228 __raw_writel(pos++, &rtcreg->adr); in tx4939_nvram_write()

1234