Home
last modified time | relevance | path

Searched refs:subaddr (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/drivers/media/i2c/
Dbt866.c49 static int bt866_write(struct bt866 *encoder, u8 subaddr, u8 data) in bt866_write() argument
55 buffer[0] = subaddr; in bt866_write()
58 encoder->reg[subaddr] = data; in bt866_write()
60 v4l_dbg(1, debug, client, "write 0x%02x = 0x%02x\n", subaddr, data); in bt866_write()
67 err, subaddr); in bt866_write()
Dtvaudio.c154 static int chip_write(struct CHIPSTATE *chip, int subaddr, int val) in chip_write() argument
161 if (subaddr < 0) { in chip_write()
173 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_write()
176 subaddr); in chip_write()
181 subaddr, val); in chip_write()
182 chip->shadow.bytes[subaddr+1] = val; in chip_write()
183 buffer[0] = subaddr; in chip_write()
188 subaddr, val); in chip_write()
198 int subaddr, int val, int mask) in chip_write_masked() argument
203 if (subaddr < 0) { in chip_write_masked()
[all …]
Dtda7432.c220 static int tda7432_write(struct v4l2_subdev *sd, int subaddr, int val) in tda7432_write() argument
226 v4l2_dbg(1, debug, sd, "Writing %d 0x%x\n", subaddr, val); in tda7432_write()
227 buffer[0] = subaddr; in tda7432_write()
231 subaddr, val); in tda7432_write()
Dir-kbd-i2c.c281 unsigned char subaddr, key, keygroup; in get_key_avermedia_cardbus() local
283 .buf = &subaddr, .len = 1}, in get_key_avermedia_cardbus()
286 subaddr = 0x0d; in get_key_avermedia_cardbus()
295 subaddr = 0x0b; in get_key_avermedia_cardbus()
/linux-6.6.21/drivers/i2c/busses/
Di2c-opal.c98 req.subaddr = (req.subaddr << 8) | msgs[0].buf[i]; in i2c_opal_master_xfer()
99 req.subaddr = cpu_to_be32(req.subaddr); in i2c_opal_master_xfer()
136 req.subaddr = cpu_to_be32(command); in i2c_opal_smbus_xfer()
148 req.subaddr = cpu_to_be32(command); in i2c_opal_smbus_xfer()
156 req.subaddr = cpu_to_be32(command); in i2c_opal_smbus_xfer()
Di2c-powermac.c41 u32 subaddr; in i2c_powermac_smbus_xfer() local
48 subaddr = 0; in i2c_powermac_smbus_xfer()
52 subaddr = command; in i2c_powermac_smbus_xfer()
106 rc = pmac_i2c_xfer(bus, addrdir, subsize, subaddr, buf, len); in i2c_powermac_smbus_xfer()
/linux-6.6.21/drivers/media/rc/
Dir-xmp-decoder.c76 u8 addr, subaddr, subaddr2, toggle, oem, obc1, obc2, sum1, sum2; in ir_xmp_decode() local
116 subaddr = n[0] << 4 | n[2]; in ir_xmp_decode()
123 if (subaddr != subaddr2) { in ir_xmp_decode()
125 subaddr, subaddr2); in ir_xmp_decode()
133 scancode = addr << 24 | subaddr << 16 | in ir_xmp_decode()
/linux-6.6.21/arch/powerpc/platforms/powermac/
Dlow_i2c.c95 u32 subaddr, u8 *data, int len);
397 u32 subaddr, u8 *data, int len) in kw_i2c_xfer() argument
437 kw_write_reg(reg_subaddr, subaddr); in kw_i2c_xfer()
674 u32 subaddr, u8 *data, int len) in pmu_i2c_xfer() argument
707 hdr->sub_addr = subaddr; in pmu_i2c_xfer()
841 u32 subaddr, u8 *data, int len) in smu_i2c_xfer() argument
869 memcpy(&cmd->info.subaddr, ((char *)&subaddr) + (4 - subsize), in smu_i2c_xfer()
1138 u32 subaddr, u8 *data, int len) in pmac_i2c_xfer() argument
1146 subaddr, len, bus->busnode); in pmac_i2c_xfer()
1148 rc = bus->xfer(bus, addrdir, subsize, subaddr, data, len); in pmac_i2c_xfer()
[all …]
Dpfunc_core.c353 u8 subaddr = (u8)pmf_next32(cmd); in pmf_parser_read_i2c_sub() local
357 subaddr, bytes); in pmf_parser_read_i2c_sub()
359 PMF_PARSE_CALL(read_i2c_sub, cmd, h, subaddr, bytes); in pmf_parser_read_i2c_sub()
364 u8 subaddr = (u8)pmf_next32(cmd); in pmf_parser_write_i2c_sub() local
369 subaddr, bytes); in pmf_parser_write_i2c_sub()
372 PMF_PARSE_CALL(write_i2c_sub, cmd, h, subaddr, bytes, blob); in pmf_parser_write_i2c_sub()
387 u8 subaddr = (u8)pmf_next32(cmd); in pmf_parser_rmw_i2c_sub() local
396 subaddr, maskbytes, valuesbytes, totalbytes); in pmf_parser_rmw_i2c_sub()
400 PMF_PARSE_CALL(rmw_i2c_sub, cmd, h, subaddr, maskbytes, valuesbytes, in pmf_parser_rmw_i2c_sub()
/linux-6.6.21/drivers/media/usb/pvrusb2/
Dpvrusb2-i2c-core.c285 unsigned int subaddr; in i2c_hack_cx25840() local
310 case 1: subaddr = 0x0100; break; in i2c_hack_cx25840()
311 case 2: subaddr = 0x0101; break; in i2c_hack_cx25840()
315 subaddr = (wdata[0] << 8) | wdata[1]; in i2c_hack_cx25840()
316 switch (subaddr) { in i2c_hack_cx25840()
330 wbuf[0] = subaddr >> 8; in i2c_hack_cx25840()
331 wbuf[1] = subaddr; in i2c_hack_cx25840()
/linux-6.6.21/arch/powerpc/include/asm/
Dpmac_pfunc.h90 int (*read_i2c_sub)(PMF_STD_ARGS, u8 subaddr, u32 len);
91 int (*write_i2c_sub)(PMF_STD_ARGS, u8 subaddr, u32 len, const u8 *data);
93 int (*rmw_i2c_sub)(PMF_STD_ARGS, u8 subaddr, u32 masklen, u32 valuelen,
Dpmac_low_i2c.h91 u32 subaddr, u8 *data, int len);
Dsmu.h488 u8 subaddr[3]; /* subaddress */ member
Dopal-api.h1019 __be32 subaddr; /* Sub-address if any */ member
/linux-6.6.21/drivers/media/pci/saa7134/
Dsaa7134-i2c.c352 u8 subaddr = 0x7, dmdregval; in saa7134_i2c_eeprom_md7134_gate() local
356 .buf = &subaddr, .len = 1}, in saa7134_i2c_eeprom_md7134_gate()
369 data[0] = subaddr; in saa7134_i2c_eeprom_md7134_gate()
Dsaa7134-cards.c7786 u8 subaddr; in saa7134_board_init2() local
7789 struct i2c_msg msg[] = {{.addr = 0x50, .flags = 0, .buf = &subaddr, .len = 1}, in saa7134_board_init2()
7793 subaddr= 0x14; in saa7134_board_init2()
7804 subaddr = data[0] + 2; in saa7134_board_init2()
7821 subaddr = data[1] + 1; in saa7134_board_init2()
7824 subaddr = data[0] + 1; in saa7134_board_init2()
/linux-6.6.21/drivers/media/usb/go7007/
Ds2250-board.c222 unsigned int subaddr, val_read; in write_reg_fp() local
224 subaddr = (buf[4] << 8) + buf[5]; in write_reg_fp()
232 if (subaddr != addr) { in write_reg_fp()
234 subaddr, addr); in write_reg_fp()
/linux-6.6.21/drivers/media/usb/em28xx/
Dem28xx-input.c156 unsigned char subaddr, keydetect, key; in em28xx_get_key_winfast_usbii_deluxe() local
162 .buf = &subaddr, .len = 1 in em28xx_get_key_winfast_usbii_deluxe()
171 subaddr = 0x10; in em28xx_get_key_winfast_usbii_deluxe()
177 subaddr = 0x00; in em28xx_get_key_winfast_usbii_deluxe()
/linux-6.6.21/drivers/macintosh/
Dsmu.c851 memset(cmd->info.subaddr, 0, sizeof(cmd->info.subaddr)); in smu_queue_i2c()
881 cmd->info.subaddr[0], cmd->info.type); in smu_queue_i2c()
/linux-6.6.21/drivers/media/pci/ngene/
Dngene-cards.c206 u8 subaddr = 0x00; in tuner_tda18212_ping() local
212 if (i2c_read_regs(i2c, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()
214 if (i2c_read_regs(i2c, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()
/linux-6.6.21/drivers/ata/
Dsata_sx4.c214 u32 device, u32 subaddr, u32 *pdata);
1038 u32 subaddr, u32 *pdata) in pdc20621_i2c_read() argument
1049 i2creg |= subaddr << 16; in pdc20621_i2c_read()
/linux-6.6.21/drivers/media/pci/ddbridge/
Dddbridge-core.c966 u8 subaddr = 0x00; in tuner_tda18212_ping() local
972 if (i2c_read_regs(adapter, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()
974 if (i2c_read_regs(adapter, adr, subaddr, tda_id, sizeof(tda_id)) < 0) in tuner_tda18212_ping()