Home
last modified time | relevance | path

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

12345

/drivers/isdn/hisax/
Dasuscom.c44 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
49 ret = bytein(adr); in readreg()
54 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in readfifo() argument
57 insb(adr, data, size); in readfifo()
62 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
65 byteout(adr, data); in writereg()
69 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in writefifo() argument
72 outsb(adr, data, size); in writefifo()
80 return (readreg(cs->hw.asus.adr, cs->hw.asus.isac, offset)); in ReadISAC()
86 writereg(cs->hw.asus.adr, cs->hw.asus.isac, offset, value); in WriteISAC()
[all …]
Dmic.c32 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
37 ret = bytein(adr); in readreg()
42 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in readfifo() argument
45 insb(adr, data, size); in readfifo()
50 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
53 byteout(adr, data); in writereg()
57 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in writefifo() argument
60 outsb(adr, data, size); in writefifo()
68 return (readreg(cs->hw.mic.adr, cs->hw.mic.isac, offset)); in ReadISAC()
74 writereg(cs->hw.mic.adr, cs->hw.mic.isac, offset, value); in WriteISAC()
[all …]
Dsedlbauer.c122 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
127 ret = bytein(adr); in readreg()
132 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in readfifo() argument
135 insb(adr, data, size); in readfifo()
140 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
143 byteout(adr, data); in writereg()
147 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in writefifo() argument
150 outsb(adr, data, size); in writefifo()
158 return (readreg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset)); in ReadISAC()
164 writereg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset, value); in WriteISAC()
[all …]
Dtelespci.c40 portdata = readl(adr + 0x200); \
44 readisac(void __iomem *adr, u_char off) in readisac() argument
51 writel(WRITE_ADDR_ISAC | off, adr + 0x200); in readisac()
55 writel(READ_DATA_ISAC, adr + 0x200); in readisac()
61 writeisac(void __iomem *adr, u_char off, u_char data) in writeisac() argument
68 writel(WRITE_ADDR_ISAC | off, adr + 0x200); in writeisac()
72 writel(WRITE_DATA_ISAC | data, adr + 0x200); in writeisac()
77 readhscx(void __iomem *adr, int hscx, u_char off) in readhscx() argument
83 writel(WRITE_ADDR_HSCX | ((hscx ? 0x40:0) + off), adr + 0x200); in readhscx()
87 writel(READ_DATA_HSCX, adr + 0x200); in readhscx()
[all …]
Dgazel.c45 readreg(unsigned int adr, u_short off) in readreg() argument
47 return bytein(adr + off); in readreg()
51 writereg(unsigned int adr, u_short off, u_char data) in writereg() argument
53 byteout(adr + off, data); in writereg()
58 read_fifo(unsigned int adr, u_char * data, int size) in read_fifo() argument
60 insb(adr, data, size); in read_fifo()
64 write_fifo(unsigned int adr, u_char * data, int size) in write_fifo() argument
66 outsb(adr, data, size); in write_fifo()
70 readreg_ipac(unsigned int adr, u_short off) in readreg_ipac() argument
74 byteout(adr, off); in readreg_ipac()
[all …]
Dsportster.c40 read_fifo(unsigned int adr, u_char * data, int size) in read_fifo() argument
42 insb(adr, data, size); in read_fifo()
46 write_fifo(unsigned int adr, u_char * data, int size) in write_fifo() argument
48 outsb(adr, data, size); in write_fifo()
137 int i, adr; in release_io_sportster() local
141 adr = cs->hw.spt.cfg_reg + i *1024; in release_io_sportster()
142 release_region(adr, 8); in release_io_sportster()
189 int i, j, adr; in get_io_range() local
192 adr = cs->hw.spt.cfg_reg + i *1024; in get_io_range()
193 if (!request_region(adr, 8, "sportster")) { in get_io_range()
[all …]
Dteles0.c33 readisac(void __iomem *adr, u_char off) in readisac() argument
35 return readb(adr + ((off & 1) ? 0x2ff : 0x100) + off); in readisac()
39 writeisac(void __iomem *adr, u_char off, u_char data) in writeisac() argument
41 writeb(data, adr + ((off & 1) ? 0x2ff : 0x100) + off); mb(); in writeisac()
46 readhscx(void __iomem *adr, int hscx, u_char off) in readhscx() argument
48 return readb(adr + (hscx ? 0x1c0 : 0x180) + in readhscx()
53 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) in writehscx() argument
55 writeb(data, adr + (hscx ? 0x1c0 : 0x180) + in writehscx()
60 read_fifo_isac(void __iomem *adr, u_char * data, int size) in read_fifo_isac() argument
63 register u_char __iomem *ad = adr + 0x100; in read_fifo_isac()
[all …]
Dbkm_a8.c41 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
45 ret = wordin(adr) & 0xFF; in readreg()
50 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in readfifo() argument
55 data[i] = wordin(adr) & 0xFF; in readfifo()
60 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
63 wordout(adr, data); in writereg()
67 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char * data, int size) in writefifo() argument
72 wordout(adr, data[i]); in writefifo()
259 sct_alloc_io(u_int adr, u_int len) in sct_alloc_io() argument
261 if (!request_region(adr, len, "scitel")) { in sct_alloc_io()
[all …]
/drivers/media/video/
Dsaa7146.h97 #define saawrite(dat,adr) writel((dat), saa->saa7146_adr+(adr)) argument
98 #define saaread(adr) readl(saa->saa7146_adr+(adr)) argument
100 #define saawrite(dat,adr) writel((dat), saa->saa7146_mem+(adr)) argument
101 #define saaread(adr) readl(saa->saa7146_mem+(adr)) argument
104 #define saaand(dat,adr) saawrite((dat) & saaread(adr), adr) argument
105 #define saaor(dat,adr) saawrite((dat) | saaread(adr), adr) argument
106 #define saaaor(dat,mask,adr) saawrite((dat) | ((mask) & saaread(adr)), adr) argument
/drivers/mtd/chips/
Dcfi_cmdset_0002.c70 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
71 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
365 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002() local
368 extp = (struct cfi_pri_amdstd*)cfi_read_pri(map, adr, sizeof(*extp), "Amd/Fujitsu"); in cfi_cmdset_0002()
557 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in get_chip() argument
571 if (chip_ready(map, adr)) in get_chip()
615 if (chip_ready(map, adr)) in get_chip()
666 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) in put_chip() argument
708 unsigned long adr) in xip_disable() argument
711 (void) map_read(map, adr); /* ensure mmu mapping is up to date */ in xip_disable()
[all …]
Dcfi_cmdset_0020.c126 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020() local
129 extp = (struct cfi_pri_intelext*)cfi_read_pri(map, adr, sizeof(*extp), "ST Microelectronics"); in cfi_cmdset_0020()
249 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len… in do_read_onechip() argument
258 adr += chip->start; in do_read_onechip()
261 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
361 map_copy_from(map, buf, adr, len); in do_read_onechip()
423 unsigned long adr, const u_char *buf, int len) in do_write_buffer() argument
432 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
436 adr += chip->start; in do_write_buffer()
437 cmd_adr = adr & ~(wbufsize-1); in do_write_buffer()
[all …]
Dcfi_cmdset_0001.c88 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
89 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
90 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
319 read_pri_intelext(struct map_info *map, __u16 adr) in read_pri_intelext() argument
325 extp = (struct cfi_pri_intelext *)cfi_read_pri(map, adr, extp_size, "Intel/Sharp"); in read_pri_intelext()
433 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001() local
436 extp = read_pri_intelext(map, adr); in cfi_cmdset_0001()
720 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in chip_ready() argument
736 status = map_read(map, adr); in chip_ready()
766 map_write(map, CMD(0xB0), adr); in chip_ready()
[all …]
Dfwh_lock.h29 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.c88 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) in cfi_read_pri() argument
96 printk(" %s Extended Query Table at 0x%4.4X\n", name, adr); in cfi_read_pri()
97 if (!adr) in cfi_read_pri()
115 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
153 unsigned long adr; in cfi_varsize_frob() local
208 adr = ofs - (chipnum << cfi->chipshift); in cfi_varsize_frob()
215 ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); in cfi_varsize_frob()
220 adr += size; in cfi_varsize_frob()
227 if (adr >> cfi->chipshift) { in cfi_varsize_frob()
228 adr = 0; in cfi_varsize_frob()
/drivers/mtd/lpddr/
Dlpddr_cmds.c30 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
39 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
41 static void lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
404 unsigned long adr, const struct kvec **pvec, in do_write_buffer() argument
423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
429 adr -= word_gap; in do_write_buffer()
470 send_pfow_command(map, LPDDR_BUFF_PROGRAM, adr, wbufsize, NULL); in do_write_buffer()
475 map->name, ret, adr); in do_write_buffer()
484 int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() argument
488 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
[all …]
/drivers/media/dvb/bt8xx/
Dbt878.h152 #define bmtwrite(dat,adr) io_st_le32((adr),(dat)) argument
153 #define bmtread(adr) ld_le32((adr)) argument
155 #define bmtwrite(dat,adr) writel((dat), (adr)) argument
156 #define bmtread(adr) readl(adr) argument
Dbt878.c68 #define btwrite(dat,adr) bmtwrite((dat), (bt->bt878_mem+(adr))) argument
69 #define btread(adr) bmtread(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/video/zoran/
Dzoran.h493 #define btwrite(dat,adr) writel((dat), zr->zr36057_mem+(adr)) argument
494 #define btread(adr) readl(zr->zr36057_mem+(adr)) argument
496 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
497 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
498 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
/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()
/drivers/media/video/bt8xx/
Dbttvp.h468 #define btwrite(dat,adr) writel((dat), btv->bt848_mmio+(adr)) argument
469 #define btread(adr) readl(btv->bt848_mmio+(adr)) argument
471 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
472 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
473 #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr) argument
/drivers/isdn/hardware/eicon/
Dio.h265 byte io_in(ADAPTER * a, void * adr);
266 word io_inw(ADAPTER * a, void * adr);
267 void io_in_buffer(ADAPTER * a, void * adr, void * P, word length);
269 void io_out(ADAPTER * a, void * adr, byte data);
270 void io_outw(ADAPTER * a, void * adr, word data);
271 void io_out_buffer(ADAPTER * a, void * adr, void * P, word length);
272 void io_inc(ADAPTER * a, void * adr);
280 byte mem_in(ADAPTER * a, void * adr);
281 word mem_inw(ADAPTER * a, void * adr);
282 void mem_in_buffer(ADAPTER * a, void * adr, void * P, word length);
[all …]
Ddi.h51 byte ( * ram_in)(ADAPTER * a, void * adr);
52 word ( * ram_inw)(ADAPTER * a, void * adr);
53 void (* ram_in_buffer)(ADAPTER * a, void * adr, void * P, word length);
55 void ( * ram_out)(ADAPTER * a, void * adr, byte data);
56 void ( * ram_outw)(ADAPTER * a, void * adr, word data);
57 void (* ram_out_buffer)(ADAPTER * a, void * adr, void * P, word length);
58 void ( * ram_inc)(ADAPTER * a, void * adr);
Dio.c664 byte io_in(ADAPTER * a, void * adr) in io_in() argument
668 outppw(Port + 4, (word)(unsigned long)adr); in io_in()
673 word io_inw(ADAPTER * a, void * adr) in io_inw() argument
677 outppw(Port + 4, (word)(unsigned long)adr); in io_inw()
682 void io_in_buffer(ADAPTER * a, void * adr, void * buffer, word len) in io_in_buffer() argument
686 if ((long)adr & 1) { in io_in_buffer()
687 outppw(Port+4, (word)(unsigned long)adr); in io_in_buffer()
690 adr = ((byte *) adr) + 1; in io_in_buffer()
697 outppw(Port+4, (word)(unsigned long)adr); in io_in_buffer()
710 void io_out(ADAPTER * a, void * adr, byte data) in io_out() argument
[all …]
/drivers/isdn/mISDN/
Dstack.c427 u_int protocol, struct sockaddr_mISDN *adr) in connect_layer1() argument
436 __func__, dev_name(&dev->dev), protocol, adr->dev, in connect_layer1()
437 adr->channel, adr->sapi, adr->tei); in connect_layer1()
447 rq.adr.channel = adr->channel; in connect_layer1()
465 u_int protocol, struct sockaddr_mISDN *adr) in connect_Bstack() argument
474 adr->dev, adr->channel, adr->sapi, in connect_Bstack()
475 adr->tei); in connect_Bstack()
480 rq.adr = *adr; in connect_Bstack()
494 rq2.adr = *adr; in connect_Bstack()
503 rq.adr = *adr; in connect_Bstack()
[all …]
/drivers/staging/rtl8187se/
Dr8180_max2820.c55 void write_maxim(struct net_device *dev,u8 adr, u32 data)
62 adr = adr &0xf;
64 word |= (adr<<12);
116 DMESG("Writing maxim: %x (adr %x)",phy_config,adr);
122 void write_maxim(struct net_device *dev,u8 adr, u32 data) { in write_maxim() argument
126 temp += adr; in write_maxim()

12345