/openbmc/linux/drivers/i2c/ |
H A D | i2c-atr.c | 12 #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 …]
|
/openbmc/linux/include/linux/ |
H A D | i2c-atr.h | 22 * 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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/scripts/kconfig/lxdialog/ |
H A D | util.c | 20 dlg.screen.atr = A_NORMAL; in set_mono_theme() 21 dlg.shadow.atr = A_NORMAL; in set_mono_theme() 22 dlg.dialog.atr = A_NORMAL; in set_mono_theme() 23 dlg.title.atr = A_BOLD; in set_mono_theme() 24 dlg.border.atr = A_NORMAL; in set_mono_theme() 25 dlg.button_active.atr = A_REVERSE; in set_mono_theme() 26 dlg.button_inactive.atr = A_DIM; in set_mono_theme() 27 dlg.button_key_active.atr = A_REVERSE; in set_mono_theme() 28 dlg.button_key_inactive.atr = A_BOLD; in set_mono_theme() 29 dlg.button_label_active.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() 75 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in do_print_item() 78 wattrset(win, selected ? dlg.tag_key_selected.atr in do_print_item() 79 : dlg.tag_key.atr); in do_print_item() 108 wattrset(win, dlg.uarrow.atr); in print_arrows() 112 wattrset(win, dlg.menubox.atr); in print_arrows() 124 wattrset(win, dlg.darrow.atr); in print_arrows() 128 wattrset(win, dlg.menubox_border.atr); in print_arrows() 202 dlg.dialog.atr, dlg.border.atr); in dialog_menu() 203 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() 118 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox() 186 wattrset(dialog, dlg.inputbox.atr); in dialog_inputbox()
|
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()
|
H A D | textbox.c | 100 wattrset(box, dlg.dialog.atr); in dialog_textbox() 101 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox() 107 dlg.dialog.atr, dlg.border.atr); in dialog_textbox() 109 wattrset(dialog, dlg.border.atr); in dialog_textbox() 113 wattrset(dialog, dlg.dialog.atr); in dialog_textbox() 114 wbkgdset(dialog, dlg.dialog.atr & A_COLOR); in dialog_textbox() 124 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox() 390 wattrset(win, dlg.position_indicator.atr); in print_position() 391 wbkgdset(win, dlg.position_indicator.atr & A_COLOR); in print_position()
|
/openbmc/linux/scripts/kconfig/lxdialog/ |
H A D | util.c | 20 dlg.screen.atr = A_NORMAL; in set_mono_theme() 21 dlg.shadow.atr = A_NORMAL; in set_mono_theme() 22 dlg.dialog.atr = A_NORMAL; in set_mono_theme() 23 dlg.title.atr = A_BOLD; in set_mono_theme() 24 dlg.border.atr = A_NORMAL; in set_mono_theme() 25 dlg.button_active.atr = A_REVERSE; in set_mono_theme() 26 dlg.button_inactive.atr = A_DIM; in set_mono_theme() 27 dlg.button_key_active.atr = A_REVERSE; in set_mono_theme() 28 dlg.button_key_inactive.atr = A_BOLD; in set_mono_theme() 29 dlg.button_label_active.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()
|
/openbmc/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
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-isl1208.c | 211 int atr = i2c_smbus_read_byte_data(client, ISL1208_REG_ATR); in isl1208_i2c_get_atr() local 212 if (atr < 0) in isl1208_i2c_get_atr() 213 return atr; in isl1208_i2c_get_atr() 215 /* The 6bit value in the ATR register controls the load in isl1208_i2c_get_atr() 218 * bit (1<<5) of the ATR register is inverted in isl1208_i2c_get_atr() 220 * C_load(ATR=0x20) = 4.50pF in isl1208_i2c_get_atr() 221 * C_load(ATR=0x00) = 12.50pF in isl1208_i2c_get_atr() 222 * C_load(ATR=0x1f) = 20.25pF in isl1208_i2c_get_atr() 226 atr &= 0x3f; /* mask out lsb */ in isl1208_i2c_get_atr() 227 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()
|
/openbmc/qemu/hw/usb/ |
H A D | ccid-card-passthru.c | 52 /* maximum size of ATR - from 7816-3 */ 63 uint8_t atr[MAX_ATR_SIZE]; member 167 DPRINTF(card, D_WARN, "atr's T0 is 0x%X, not in {0x3b, 0x3f}\n", in check_atr() 191 "atr too short: len %d, but historical_len %d, T1 0x%X\n", in check_atr() 197 "atr too long: len %d, but hist/opt %d/%d, T1 0x%X\n", in check_atr() 202 "atr passes check: %d total length, %d historical, %d optional\n", in check_atr() 217 error_report("ATR size exceeds spec, ignoring"); in ccid_card_vscard_handle_message() 223 error_report("ATR is inconsistent, ignoring"); in ccid_card_vscard_handle_message() 228 memcpy(card->atr, data, scr_msg_header->length); in ccid_card_vscard_handle_message() 350 return card->atr; in passthru_get_atr() [all …]
|
H A D | ccid-card-emulated.c | 124 uint8_t atr[MAX_ATR_SIZE]; member 162 return card->atr; in emulated_get_atr() 215 const uint8_t *atr, uint32_t len) in emulated_push_card_insert() argument 217 emulated_push_data_type(card, EMUL_CARD_INSERT, atr, len); in emulated_push_card_insert() 283 uint8_t atr[MAX_ATR_SIZE]; in event_thread() local 340 /* get the ATR (intended as a response to a power on from the in event_thread() 343 vreader_power_on(event->reader, atr, &atr_len); in event_thread() 346 emulated_push_card_insert(card, atr, atr_len); in event_thread() 386 memcpy(card->atr, event->p.data.data, card->atr_length); in card_event_handler()
|
H A D | dev-smartcard-reader.c | 365 * + 2 Automatic parameter configuration based on ATR data 825 static uint8_t atr_get_protocol_num(const uint8_t *atr, uint32_t len) in atr_get_protocol_num() argument 829 if (len < 2 || !(atr[1] & 0x80)) { in atr_get_protocol_num() 833 i = 1 + !!(atr[1] & 0x10) + !!(atr[1] & 0x20) + !!(atr[1] & 0x40); in atr_get_protocol_num() 834 i += !!(atr[1] & 0x80); in atr_get_protocol_num() 835 return atr[i] & 0x0f; in atr_get_protocol_num() 840 const uint8_t *atr = NULL; in ccid_write_data_block_atr() local 847 atr = ccid_card_get_atr(s->card, &len); in ccid_write_data_block_atr() 849 atr_protocol_num = atr_get_protocol_num(atr, len); in ccid_write_data_block_atr() 850 DPRINTF(s, D_VERBOSE, "%s: atr contains protocol=%d\n", __func__, in ccid_write_data_block_atr() [all …]
|
/openbmc/linux/include/media/i2c/ |
H A D | ds90ub9xx.h | 13 * @atr: I2C ATR 18 struct i2c_atr *atr; member
|
/openbmc/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
|
/openbmc/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()
|