Home
last modified time | relevance | path

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

1234

/drivers/media/pci/ddbridge/
Dddbridge-i2c.h24 static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr, in i2c_io() argument
27 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_io()
29 { .addr = adr, .flags = I2C_M_RD, in i2c_io()
35 static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr, in i2c_write() argument
38 struct i2c_msg msg = { .addr = adr, .flags = 0, in i2c_write()
44 static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val) in i2c_read() argument
46 struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, in i2c_read()
53 u8 adr, u8 reg, u8 *val, u8 len) in i2c_read_regs() argument
55 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs()
57 { .addr = adr, .flags = I2C_M_RD, in i2c_read_regs()
[all …]
Dddbridge-io.h19 static inline u32 ddblreadl(struct ddb_link *link, u32 adr) in ddblreadl() argument
21 return readl(link->dev->regs + adr); in ddblreadl()
24 static inline void ddblwritel(struct ddb_link *link, u32 val, u32 adr) in ddblwritel() argument
26 writel(val, link->dev->regs + adr); in ddblwritel()
29 static inline u32 ddbreadl(struct ddb *dev, u32 adr) in ddbreadl() argument
31 return readl(dev->regs + adr); in ddbreadl()
34 static inline void ddbwritel(struct ddb *dev, u32 val, u32 adr) in ddbwritel() argument
36 writel(val, dev->regs + adr); in ddbwritel()
39 static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count) in ddbcpyto() argument
41 memcpy_toio(dev->regs + adr, src, count); in ddbcpyto()
[all …]
Dddbridge-ci.c174 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_creg() local
177 return i2c_write_reg(i2c, adr, 0x02, ci->port->creg); in write_creg()
185 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in read_attribute_mem_xo2() local
189 res = i2c_read_reg16(i2c, adr, 0x8000 | address, &val); in read_attribute_mem_xo2()
198 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_attribute_mem_xo2() local
200 return i2c_write_reg16(i2c, adr, 0x8000 | address, value); in write_attribute_mem_xo2()
208 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in read_cam_control_xo2() local
212 res = i2c_read_reg(i2c, adr, 0x20 | (address & 3), &val); in read_cam_control_xo2()
221 u8 adr = (ci->port->type == DDB_CI_EXTERNAL_XO2) ? 0x12 : 0x13; in write_cam_control_xo2() local
223 return i2c_write_reg(i2c, adr, 0x20 | (address & 3), value); in write_cam_control_xo2()
[all …]
/drivers/mtd/chips/
Dcfi_cmdset_0002.c97 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
98 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
130 unsigned long adr) in cfi_check_err_status() argument
140 status = map_read(map, adr); in cfi_check_err_status()
558 unsigned long adr) in cfi_fixup_m29ew_erase_suspend() argument
563 map_write(map, CMD(0xF0), adr); in cfi_fixup_m29ew_erase_suspend()
639 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002() local
642 extp = (struct cfi_pri_amdstd*)cfi_read_pri(map, adr, sizeof(*extp), "Amd/Fujitsu"); in cfi_cmdset_0002()
874 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in get_chip() argument
888 if (chip_ready(map, chip, adr, NULL)) in get_chip()
[all …]
Dcfi_cmdset_0020.c125 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020() local
128 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()
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.c99 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
100 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
101 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
393 read_pri_intelext(struct map_info *map, __u16 adr) in read_pri_intelext() argument
401 extp = (struct cfi_pri_intelext *)cfi_read_pri(map, adr, extp_size, "Intel/Sharp"); in read_pri_intelext()
533 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001() local
536 extp = read_pri_intelext(map, adr); in cfi_cmdset_0001()
827 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in chip_ready() argument
843 status = map_read(map, adr); in chip_ready()
872 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.c298 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) in cfi_read_pri() argument
306 if (!adr) in cfi_read_pri()
309 printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); in cfi_read_pri()
324 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
362 unsigned long adr; in cfi_varsize_frob() local
411 adr = ofs - (chipnum << cfi->chipshift); in cfi_varsize_frob()
418 ret = (*frob)(map, &cfi->chips[chipnum], adr, size, thunk); in cfi_varsize_frob()
423 adr += size; in cfi_varsize_frob()
430 if (adr >> cfi->chipshift) { in cfi_varsize_frob()
431 adr = 0; in cfi_varsize_frob()
/drivers/media/pci/zoran/
Dzoran.h305 #define btwrite(dat, adr) writel((dat), zr->zr36057_mem + (adr)) argument
306 #define btread(adr) readl(zr->zr36057_mem + (adr)) argument
308 #define btand(dat, adr) btwrite((dat) & btread(adr), (adr)) argument
309 #define btor(dat, adr) btwrite((dat) | btread(adr), (adr)) argument
310 #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()
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 …]
/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);
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()
426 adr -= word_gap; in do_write_buffer()
467 send_pfow_command(map, LPDDR_BUFF_PROGRAM, adr, wbufsize, NULL); in do_write_buffer()
472 map->name, ret, adr); in do_write_buffer()
481 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() argument
485 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
[all …]
/drivers/media/pci/bt8xx/
Dbttvp.h491 #define btwrite(dat,adr) writel((dat), btv->bt848_mmio+(adr)) argument
492 #define btread(adr) readl(btv->bt848_mmio+(adr)) argument
494 #define btand(dat,adr) btwrite((dat) & btread(adr), adr) argument
495 #define btor(dat,adr) btwrite((dat) | btread(adr), adr) argument
496 #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/media/dvb-frontends/
Dstv6111.c23 u8 adr; member
296 u8 adr, u8 *msg, int len, u8 *answ, int alen) in i2c_read() argument
298 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read()
300 { .addr = adr, .flags = I2C_M_RD, in i2c_read()
309 static int i2c_write(struct i2c_adapter *adap, u8 adr, u8 *data, int len) in i2c_write() argument
311 struct i2c_msg msg = {.addr = adr, .flags = 0, in i2c_write()
327 return i2c_write(state->i2c, state->adr, d, len + 1); in write_regs()
334 return i2c_write(state->i2c, state->adr, d, 2); in write_reg()
339 return i2c_read(state->i2c, state->adr, &reg, 1, val, 1); in read_reg()
650 struct i2c_adapter *i2c, u8 adr) in stv6111_attach() argument
[all …]
/drivers/net/wireless/microchip/wilc1000/
Dspi.c482 static int wilc_spi_single_read(struct wilc *wilc, u8 cmd, u32 adr, void *b, in wilc_spi_single_read() argument
499 c->u.simple_cmd.addr[0] = adr >> 16; in wilc_spi_single_read()
500 c->u.simple_cmd.addr[1] = adr >> 8; in wilc_spi_single_read()
501 c->u.simple_cmd.addr[2] = adr; in wilc_spi_single_read()
503 c->u.simple_cmd.addr[0] = adr >> 8; in wilc_spi_single_read()
506 c->u.simple_cmd.addr[1] = adr; in wilc_spi_single_read()
577 static int wilc_spi_write_cmd(struct wilc *wilc, u8 cmd, u32 adr, u32 data, in wilc_spi_write_cmd() argument
592 c->u.internal_w_cmd.addr[0] = adr >> 8; in wilc_spi_write_cmd()
596 c->u.internal_w_cmd.addr[1] = adr; in wilc_spi_write_cmd()
602 c->u.w_cmd.addr[0] = adr >> 16; in wilc_spi_write_cmd()
[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/soundwire/
Ddmi-quirks.c14 u64 adr; member
168 for (map = dmi_id->driver_data; map->adr; map++) { in sdw_dmi_override_adr()
169 if (map->adr == addr) { in sdw_dmi_override_adr()

1234