Home
last modified time | relevance | path

Searched full:atr (Results 1 – 25 of 40) sorted by relevance

12

/linux/drivers/i2c/
H A Di2c-atr.c12 #include <linux/i2c-atr.h>
40 * @atr: The parent I2C ATR
50 struct i2c_atr *atr; member
62 * struct i2c_atr - The I2C ATR instance
64 * @dev: The device that owns the I2C ATR instance
69 * @max_adapters: Maximum number of adapters this I2C ATR can have
137 struct i2c_atr *atr = chan->atr; in i2c_atr_map_msgs() local
161 dev_err(atr->dev, "client 0x%02x not mapped!\n", in i2c_atr_map_msgs()
196 struct i2c_atr *atr = chan->atr; in i2c_atr_master_xfer() local
197 struct i2c_adapter *parent = atr->parent; in i2c_atr_master_xfer()
[all …]
H A DKconfig67 tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
69 Enable support for I2C Address Translator (ATR) chips.
71 An ATR allows accessing multiple I2C busses from a single
H A DMakefile17 obj-$(CONFIG_I2C_ATR) += i2c-atr.o
/linux/include/linux/
H A Di2c-atr.h22 * struct i2c_atr_ops - Callbacks from ATR to the device driver.
33 int (*attach_client)(struct i2c_atr *atr, u32 chan_id,
35 void (*detach_client)(struct i2c_atr *atr, u32 chan_id,
40 * i2c_atr_new() - Allocate and initialize an I2C ATR helper.
42 * @dev: The device acting as an ATR
46 * The new ATR helper is connected to the parent adapter but has no child
51 * Return: pointer to the new ATR helper object, or ERR_PTR
57 * i2c_atr_delete - Delete an I2C ATR helper.
58 * @atr: I2C ATR helper to be deleted.
63 void i2c_atr_delete(struct i2c_atr *atr);
[all …]
/linux/Documentation/i2c/
H A Di2c-address-translators.rst13 An I2C Address Translator (ATR) is a device with an I2C slave parent
21 An ATR looks similar to an i2c-mux except:
26 The ATR functionality can be provided by a chip with many other features.
27 The kernel i2c-atr provides a helper to implement an ATR within a driver.
29 The ATR creates a new I2C "child" adapter on each child bus. Adding
33 ATR maintains a table of currently assigned alias and uses it to modify
43 | CPU |--A--| ATR |
51 each other. The ATR receives the transactions initiated on bus A and
69 - ATR driver finds slave X is on bus B and has alias 0x20, rewrites
72 - ATR chip detects transaction on address 0x20, finds it in table,
[all …]
/linux/scripts/kconfig/lxdialog/
H A Dutil.c20 dlg.title.atr = A_BOLD; in set_mono_theme()
21 dlg.button_active.atr = A_REVERSE; in set_mono_theme()
22 dlg.button_inactive.atr = A_DIM; in set_mono_theme()
23 dlg.button_key_active.atr = A_REVERSE; in set_mono_theme()
24 dlg.button_key_inactive.atr = A_BOLD; in set_mono_theme()
25 dlg.button_label_active.atr = A_REVERSE; in set_mono_theme()
26 dlg.position_indicator.atr = A_BOLD; in set_mono_theme()
27 dlg.item_selected.atr = A_REVERSE; in set_mono_theme()
28 dlg.tag.atr = A_BOLD; in set_mono_theme()
29 dlg.tag_selected.atr = A_REVERSE; in set_mono_theme()
[all …]
H A Dchecklist.c27 wattrset(win, dlg.menubox.atr); in print_item()
33 wattrset(win, selected ? dlg.check_selected.atr in print_item()
34 : dlg.check.atr); in print_item()
38 wattrset(win, selected ? dlg.tag_selected.atr : dlg.tag.atr); in print_item()
40 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in print_item()
58 wattrset(win, dlg.uarrow.atr); in print_arrows()
62 wattrset(win, dlg.menubox.atr); in print_arrows()
73 wattrset(win, dlg.darrow.atr); in print_arrows()
77 wattrset(win, dlg.menubox_border.atr); in print_arrows()
139 dlg.dialog.atr, dlg.border.atr); in dialog_checklist()
[all …]
H A Dmenubox.c64 wattrset(win, dlg.menubox.atr); in do_print_item()
67 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in do_print_item()
70 wattrset(win, selected ? dlg.tag_key_selected.atr in do_print_item()
71 : dlg.tag_key.atr); in do_print_item()
100 wattrset(win, dlg.uarrow.atr); in print_arrows()
104 wattrset(win, dlg.menubox.atr); in print_arrows()
116 wattrset(win, dlg.darrow.atr); in print_arrows()
120 wattrset(win, dlg.menubox_border.atr); in print_arrows()
194 dlg.dialog.atr, dlg.border.atr); in dialog_menu()
195 wattrset(dialog, dlg.border.atr); in dialog_menu()
[all …]
H A Dinputbox.c61 dlg.dialog.atr, dlg.border.atr); in dialog_inputbox()
62 wattrset(dialog, dlg.border.atr); in dialog_inputbox()
66 wattrset(dialog, dlg.dialog.atr); in dialog_inputbox()
71 wattrset(dialog, dlg.dialog.atr); in dialog_inputbox()
80 dlg.dialog.atr, dlg.border.atr); in dialog_inputbox()
86 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
119 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
187 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
H A Dtextbox.c123 wattrset(win, dlg.position_indicator.atr); in print_position()
124 wbkgdset(win, dlg.position_indicator.atr & A_COLOR); in print_position()
208 wattrset(box, dlg.dialog.atr); in dialog_textbox()
209 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox()
215 dlg.dialog.atr, dlg.border.atr); in dialog_textbox()
217 wattrset(dialog, dlg.border.atr); in dialog_textbox()
221 wattrset(dialog, dlg.dialog.atr); in dialog_textbox()
222 wbkgdset(dialog, dlg.dialog.atr & A_COLOR); in dialog_textbox()
232 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox()
H A Dyesno.c50 dlg.dialog.atr, dlg.border.atr); in dialog_yesno()
51 wattrset(dialog, dlg.border.atr); in dialog_yesno()
55 wattrset(dialog, dlg.dialog.atr); in dialog_yesno()
60 wattrset(dialog, dlg.dialog.atr); in dialog_yesno()
/linux/Documentation/usb/
H A Dacm.rst80 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
82 E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
89 C: #Ifs= 1 Cfg#= 1 Atr=60 MxPwr= 0mA
91 E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
92 E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
93 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
94 C:* #Ifs= 2 Cfg#= 2 Atr=60 MxPwr= 0mA
96 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
98 E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
99 E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
H A Dgadget_serial.rst205 C:* #Ifs= 2 Cfg#= 2 Atr=c0 MxPwr= 2mA
207 E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
209 E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
210 E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
237 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
239 E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
240 E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
/linux/drivers/rtc/
H A Drtc-isl1208.c212 int atr = i2c_smbus_read_byte_data(client, ISL1208_REG_ATR); in isl1208_i2c_get_atr() local
213 if (atr < 0) in isl1208_i2c_get_atr()
214 return atr; in isl1208_i2c_get_atr()
216 /* The 6bit value in the ATR register controls the load in isl1208_i2c_get_atr()
219 * bit (1<<5) of the ATR register is inverted in isl1208_i2c_get_atr()
221 * C_load(ATR=0x20) = 4.50pF in isl1208_i2c_get_atr()
222 * C_load(ATR=0x00) = 12.50pF in isl1208_i2c_get_atr()
223 * C_load(ATR=0x1f) = 20.25pF in isl1208_i2c_get_atr()
227 atr &= 0x3f; /* mask out lsb */ in isl1208_i2c_get_atr()
228 atr ^= 1 << 5; /* invert 6th bit */ in isl1208_i2c_get_atr()
[all …]
H A Drtc-x1205.c336 s8 atr; in x1205_get_atrim() local
345 {/* read atr */ in x1205_get_atrim()
349 .buf = &atr in x1205_get_atrim()
353 /* read atr register */ in x1205_get_atrim()
359 dev_dbg(&client->dev, "%s: raw atr=%x\n", __func__, atr); in x1205_get_atrim()
361 /* atr is a two's complement value on 6 bits, in x1205_get_atrim()
363 * Catr = (atr * 0.25pF) + 11.00pF. in x1205_get_atrim()
365 atr = sign_extend32(atr, 5); in x1205_get_atrim()
367 dev_dbg(&client->dev, "%s: raw atr=%x (%d)\n", __func__, atr, atr); in x1205_get_atrim()
369 *trim = (atr * 250) + 11000; in x1205_get_atrim()
/linux/include/media/i2c/
H A Dds90ub9xx.h13 * @atr: I2C ATR
18 struct i2c_atr *atr; member
/linux/Documentation/input/devices/
H A Dxpad.rst143 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
145 E: Ad=81(I) Atr=03(Int.) MxPS= 32 Ivl= 10ms
146 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl= 10ms
155 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
157 E: Ad=82(I) Atr=03(Int.) MxPS= 32 Ivl=4ms
158 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl=4ms
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_pcie_mac.c124 /* Ensure ATR is set */ in t7xx_pcie_mac_atr_cfg()
133 * Setup ATR for ports & device.
145 /* Config ATR for RC to access device's register */ in t7xx_pcie_mac_atr_init()
157 /* Config ATR for EP to access RC's memory */ in t7xx_pcie_mac_atr_init()
/linux/Documentation/devicetree/bindings/i2c/
H A Di2c-atr.yaml4 $id: http://devicetree.org/schemas/i2c/i2c-atr.yaml#
13 An I2C Address Translator (ATR) is a device with an I2C slave parent
/linux/Documentation/driver-api/usb/
H A Dusb.rst870 C:* #Ifs=dd Cfg#=dd Atr=xx MPwr=dddmA
921 E: Ad=xx(s) Atr=xx(ssss) MxPS=dddd Ivl=dddss
980 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
982 E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
987 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
989 E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms
994 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
996 E: Ad=81(I) Atr=03(Int.) MxPS= 3 Ivl= 10ms
1003 C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
1005 E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 16ms
[all …]
/linux/drivers/nfc/st21nfca/
H A Dse.c56 td = ST21NFCA_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); in st21nfca_se_get_bwi()
61 return info->se_info.atr[i] >> 4; in st21nfca_se_get_bwi()
79 memcpy(info->se_info.atr, skb->data, skb->len); in st21nfca_se_get_atr()
/linux/drivers/usb/core/
H A Ddevices.c84 /* C: #Ifs=dd Cfg#=dd Atr=xx MPwr=dddmA */
85 "C:%c #Ifs=%2d Cfg#=%2d Atr=%02x MxPwr=%3dmA\n";
96 /* E: Ad=xx(s) Atr=xx(ssss) MxPS=dddd Ivl=D?s */
97 "E: Ad=%02x(%c) Atr=%02x(%-4s) MxPS=%4d Ivl=%d%cs\n";
/linux/drivers/scsi/qla2xxx/
H A Dqla_tmpl.c367 struct atio *atr = ha->tgt.atio_ring; in qla27xx_fwdt_entry_t263() local
369 if (atr || !buf) { in qla27xx_fwdt_entry_t263()
373 qla27xx_insertbuf(atr, length * sizeof(*atr), buf, len); in qla27xx_fwdt_entry_t263()
666 struct atio *atr = ha->tgt.atio_ring_ptr; in qla27xx_fwdt_entry_t274() local
668 if (atr || !buf) { in qla27xx_fwdt_entry_t274()
/linux/drivers/nfc/st-nci/
H A Dse.c121 td = ST_NCI_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); in st_nci_se_get_bwi()
126 return info->se_info.atr[i] >> 4; in st_nci_se_get_bwi()
144 memcpy(info->se_info.atr, skb->data, skb->len); in st_nci_se_get_atr()
H A Dst-nci.h46 u8 atr[ST_NCI_ESE_MAX_LENGTH]; member

12