/linux/drivers/i2c/ |
H A D | i2c-atr.c | 11 #include <linux/i2c-atr.h> 33 * contains more distinct target addresses than the ATR channel can handle. 47 * struct i2c_atr_alias_pool - Pool of client aliases available for an ATR. 68 * @atr: The parent I2C ATR 83 struct i2c_atr *atr; member 100 * struct i2c_atr - The I2C ATR instance 102 * @dev: The device that owns the I2C ATR instance 108 * @max_adapters: Maximum number of adapters this I2C ATR can have 109 * @flags: Flags for ATR 262 struct i2c_atr *atr = chan->atr; in i2c_atr_create_mapping_by_addr() local [all …]
|
H A D | Kconfig | 67 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 D | Makefile | 17 obj-$(CONFIG_I2C_ATR) += i2c-atr.o
|
/linux/include/linux/ |
H A D | i2c-atr.h | 22 * enum i2c_atr_flags - Flags for an I2C ATR driver 24 * @I2C_ATR_F_STATIC: ATR does not support dynamic mapping, use static mapping. 27 * The ATR pool will have to be big enough to accomodate all 37 * struct i2c_atr_ops - Callbacks from ATR to the device driver. 48 int (*attach_addr)(struct i2c_atr *atr, u32 chan_id, 50 void (*detach_addr)(struct i2c_atr *atr, u32 chan_id, 55 * struct i2c_atr_adap_desc - An ATR downstream bus descriptor 59 * to use the i2c-atr device as the parent. 63 * to zero if this adapter uses the ATR's global alias pool. 65 * instead of the ATR's global pool of aliases. Must contain [all …]
|
/linux/Documentation/i2c/ |
H A D | i2c-address-translators.rst | 13 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 D | util.c | 20 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 D | checklist.c | 27 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 D | menubox.c | 64 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 D | inputbox.c | 61 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 D | textbox.c | 123 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 D | yesno.c | 50 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/drivers/misc/ |
H A D | ti_fpc202.c | 12 #include <linux/i2c-atr.h> 64 struct i2c_atr *atr; member 235 static int fpc202_attach_addr(struct i2c_atr *atr, u32 chan_id, in fpc202_attach_addr() argument 238 struct fpc202_priv *priv = i2c_atr_get_driver_data(atr); in fpc202_attach_addr() 245 static void fpc202_detach_addr(struct i2c_atr *atr, u32 chan_id, in fpc202_detach_addr() argument 248 struct fpc202_priv *priv = i2c_atr_get_driver_data(atr); in fpc202_detach_addr() 293 ret = i2c_atr_add_adapter(priv->atr, &desc); in fpc202_probe_port() 308 i2c_atr_del_adapter(priv->atr, port_id); in fpc202_remove_port() 352 priv->atr = i2c_atr_new(client->adapter, dev, &fpc202_atr_ops, 2, 0); in fpc202_probe() 353 if (IS_ERR(priv->atr)) { in fpc202_probe() [all …]
|
/linux/Documentation/usb/ |
H A D | acm.rst | 80 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 D | gadget_serial.rst | 205 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 D | rtc-isl1208.c | 212 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 D | rtc-x1205.c | 336 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 D | ds90ub9xx.h | 13 * @atr: I2C ATR 18 struct i2c_atr *atr; member
|
/linux/Documentation/input/devices/ |
H A D | xpad.rst | 143 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 D | t7xx_pcie_mac.c | 124 /* 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 D | i2c-atr.yaml | 4 $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/devicetree/bindings/misc/ |
H A D | ti,fpc202.yaml | 13 - $ref: /schemas/i2c/i2c-atr.yaml# 72 i2c-atr@f {
|
/linux/Documentation/driver-api/usb/ |
H A D | usb.rst | 871 C:* #Ifs=dd Cfg#=dd Atr=xx MPwr=dddmA 922 E: Ad=xx(s) Atr=xx(ssss) MxPS=dddd Ivl=dddss 981 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA 983 E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms 988 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA 990 E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms 995 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA 997 E: Ad=81(I) Atr=03(Int.) MxPS= 3 Ivl= 10ms 1004 C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA 1006 E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 16ms [all …]
|
/linux/drivers/net/ethernet/wangxun/txgbe/ |
H A D | txgbe_type.h | 203 /* Software ATR hash keys */ 207 /* Software ATR input stream values and masks */ 235 /* Flow Director ATR input struct. */ 263 /* Flow Director compressed ATR hash input struct */
|
/linux/drivers/nfc/st21nfca/ |
H A D | se.c | 56 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 D | devices.c | 84 /* 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";
|