Home
last modified time | relevance | path

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

123

/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 DMakefile16 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/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_type.h166 /* Software ATR hash keys */
170 /* Software ATR input stream values and masks */
198 /* Flow Director ATR input struct. */
226 /* Flow Director compressed ATR hash input struct */
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Di40e.rst167 Application Targeted Routing (ATR) Perfect Filters
169 ATR is enabled by default when the kernel is in multiple transmit queue mode.
170 An ATR Intel Ethernet Flow Director filter rule is added when a TCP-IP flow
172 Director rule is added from ethtool (Sideband filter), ATR is turned off by the
173 driver. To re-enable ATR, the sideband can be disabled with the ethtool -K
178 If sideband is re-enabled after ATR is re-enabled, ATR remains enabled until a
179 TCP-IP flow is added. When all TCP-IP sideband rules are deleted, ATR is
182 Packets that match the ATR rules are counted in fdir_atr_match stats in
183 ethtool, which also can be used to verify whether ATR rules still exist.
/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/media/i2c/
H A Dds90ub960.c26 * - i2c-atr could be made embeddable instead of allocatable.
34 #include <linux/i2c-atr.h>
518 struct i2c_atr *atr; member
1024 * I2C-ATR (address translator)
1027 static int ub960_atr_attach_client(struct i2c_atr *atr, u32 chan_id, in ub960_atr_attach_client() argument
1030 struct ub960_data *priv = i2c_atr_get_driver_data(atr); in ub960_atr_attach_client()
1058 static void ub960_atr_detach_client(struct i2c_atr *atr, u32 chan_id, in ub960_atr_detach_client() argument
1061 struct ub960_data *priv = i2c_atr_get_driver_data(atr); in ub960_atr_detach_client()
1095 priv->atr = i2c_atr_new(parent_adap, dev, &ub960_atr_ops, in ub960_init_atr()
1097 if (IS_ERR(priv->atr)) in ub960_init_atr()
[all …]

123