/linux-4.4.14/drivers/md/ |
H A D | dm-target.c | 23 struct target_type *tt; __find_target_type() local 25 list_for_each_entry(tt, &_targets, list) __find_target_type() 26 if (!strcmp(name, tt->name)) __find_target_type() 27 return tt; __find_target_type() 34 struct target_type *tt; get_target_type() local 38 tt = __find_target_type(name); get_target_type() 39 if (tt && !try_module_get(tt->module)) get_target_type() 40 tt = NULL; get_target_type() 43 return tt; get_target_type() 53 struct target_type *tt = get_target_type(name); dm_get_target_type() local 55 if (!tt) { dm_get_target_type() 57 tt = get_target_type(name); dm_get_target_type() 60 return tt; dm_get_target_type() 63 void dm_put_target_type(struct target_type *tt) dm_put_target_type() argument 66 module_put(tt->module); dm_put_target_type() 70 int dm_target_iterate(void (*iter_func)(struct target_type *tt, dm_target_iterate() argument 73 struct target_type *tt; dm_target_iterate() local 76 list_for_each_entry(tt, &_targets, list) dm_target_iterate() 77 iter_func(tt, param); dm_target_iterate() 83 int dm_register_target(struct target_type *tt) dm_register_target() argument 88 if (__find_target_type(tt->name)) dm_register_target() 91 list_add(&tt->list, &_targets); dm_register_target() 97 void dm_unregister_target(struct target_type *tt) dm_unregister_target() argument 100 if (!__find_target_type(tt->name)) { dm_unregister_target() 101 DMCRIT("Unregistering unrecognised target: %s", tt->name); dm_unregister_target() 105 list_del(&tt->list); dm_unregister_target() 114 static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args) io_err_ctr() argument 119 tt->num_discard_bios = 1; io_err_ctr() 124 static void io_err_dtr(struct dm_target *tt) io_err_dtr() argument 129 static int io_err_map(struct dm_target *tt, struct bio *bio) io_err_map() argument
|
H A D | dm.h | 117 void dm_put_target_type(struct target_type *tt); 118 int dm_target_iterate(void (*iter_func)(struct target_type *tt,
|
H A D | dm-ioctl.c | 558 static void list_version_get_needed(struct target_type *tt, void *needed_param) list_version_get_needed() argument 563 *needed += strlen(tt->name); list_version_get_needed() 567 static void list_version_get_info(struct target_type *tt, void *param) list_version_get_info() argument 572 if ((char *)info->vers + sizeof(tt->version) + strlen(tt->name) + 1 > list_version_get_info() 582 info->vers->version[0] = tt->version[0]; list_version_get_info() 583 info->vers->version[1] = tt->version[1]; list_version_get_info() 584 info->vers->version[2] = tt->version[2]; list_version_get_info() 586 strcpy(info->vers->name, tt->name); list_version_get_info() 589 info->vers = align_ptr(((void *) ++info->vers) + strlen(tt->name) + 1); list_version_get_info()
|
/linux-4.4.14/drivers/media/rc/ |
H A D | ttusbir.c | 58 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); ttusbir_brightness_get() local 60 return tt->led_on ? LED_FULL : LED_OFF; ttusbir_brightness_get() 63 static void ttusbir_set_led(struct ttusbir *tt) ttusbir_set_led() argument 69 if (tt->led_on != tt->is_led_on && tt->udev && ttusbir_set_led() 70 atomic_add_unless(&tt->led_complete, 1, 1)) { ttusbir_set_led() 71 tt->bulk_buffer[4] = tt->is_led_on = tt->led_on; ttusbir_set_led() 72 ret = usb_submit_urb(tt->bulk_urb, GFP_ATOMIC); ttusbir_set_led() 74 dev_warn(tt->dev, "failed to submit bulk urb: %d\n", ttusbir_set_led() 76 atomic_dec(&tt->led_complete); ttusbir_set_led() 84 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); ttusbir_brightness_set() local 86 tt->led_on = brightness != LED_OFF; ttusbir_brightness_set() 88 ttusbir_set_led(tt); ttusbir_brightness_set() 96 struct ttusbir *tt = urb->context; ttusbir_bulk_complete() local 98 atomic_dec(&tt->led_complete); ttusbir_bulk_complete() 110 dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); ttusbir_bulk_complete() 114 ttusbir_set_led(tt); ttusbir_bulk_complete() 122 static void ttusbir_process_ir_data(struct ttusbir *tt, uint8_t *buf) ttusbir_process_ir_data() argument 136 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) ttusbir_process_ir_data() 142 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) ttusbir_process_ir_data() 156 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) ttusbir_process_ir_data() 161 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) ttusbir_process_ir_data() 169 ir_raw_event_handle(tt->rc); ttusbir_process_ir_data() 174 struct ttusbir *tt = urb->context; ttusbir_urb_complete() local 179 ttusbir_process_ir_data(tt, urb->transfer_buffer); ttusbir_urb_complete() 188 dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); ttusbir_urb_complete() 194 dev_warn(tt->dev, "failed to resubmit urb: %d\n", rc); ttusbir_urb_complete() 200 struct ttusbir *tt; ttusbir_probe() local 207 tt = kzalloc(sizeof(*tt), GFP_KERNEL); ttusbir_probe() 209 if (!tt || !rc) { ttusbir_probe() 233 tt->bulk_out_endp = bulk_out_endp; ttusbir_probe() 234 tt->iso_in_endp = iso_in_endp; ttusbir_probe() 247 tt->dev = &intf->dev; ttusbir_probe() 248 tt->udev = interface_to_usbdev(intf); ttusbir_probe() 249 tt->rc = rc; ttusbir_probe() 251 ret = usb_set_interface(tt->udev, 0, altsetting); ttusbir_probe() 264 urb->dev = tt->udev; ttusbir_probe() 265 urb->context = tt; ttusbir_probe() 266 urb->pipe = usb_rcvisocpipe(tt->udev, tt->iso_in_endp); ttusbir_probe() 268 buffer = usb_alloc_coherent(tt->udev, 128, GFP_KERNEL, ttusbir_probe() 286 tt->urb[i] = urb; ttusbir_probe() 289 tt->bulk_urb = usb_alloc_urb(0, GFP_KERNEL); ttusbir_probe() 290 if (!tt->bulk_urb) { ttusbir_probe() 295 tt->bulk_buffer[0] = 0xaa; ttusbir_probe() 296 tt->bulk_buffer[1] = 0x01; ttusbir_probe() 297 tt->bulk_buffer[2] = 0x05; ttusbir_probe() 298 tt->bulk_buffer[3] = 0x01; ttusbir_probe() 300 usb_fill_bulk_urb(tt->bulk_urb, tt->udev, usb_sndbulkpipe(tt->udev, ttusbir_probe() 301 tt->bulk_out_endp), tt->bulk_buffer, sizeof(tt->bulk_buffer), ttusbir_probe() 302 ttusbir_bulk_complete, tt); ttusbir_probe() 304 tt->led.name = "ttusbir:green:power"; ttusbir_probe() 305 tt->led.default_trigger = "rc-feedback"; ttusbir_probe() 306 tt->led.brightness_set = ttusbir_brightness_set; ttusbir_probe() 307 tt->led.brightness_get = ttusbir_brightness_get; ttusbir_probe() 308 tt->is_led_on = tt->led_on = true; ttusbir_probe() 309 atomic_set(&tt->led_complete, 0); ttusbir_probe() 310 ret = led_classdev_register(&intf->dev, &tt->led); ttusbir_probe() 314 usb_make_path(tt->udev, tt->phys, sizeof(tt->phys)); ttusbir_probe() 317 rc->input_phys = tt->phys; ttusbir_probe() 318 usb_to_input_id(tt->udev, &rc->input_id); ttusbir_probe() 322 rc->priv = tt; ttusbir_probe() 338 usb_set_intfdata(intf, tt); ttusbir_probe() 341 ret = usb_submit_urb(tt->urb[i], GFP_KERNEL); ttusbir_probe() 343 dev_err(tt->dev, "failed to submit urb %d\n", ret); ttusbir_probe() 353 led_classdev_unregister(&tt->led); ttusbir_probe() 355 if (tt) { ttusbir_probe() 356 for (i = 0; i < NUM_URBS && tt->urb[i]; i++) { ttusbir_probe() 357 struct urb *urb = tt->urb[i]; ttusbir_probe() 360 usb_free_coherent(tt->udev, 128, urb->transfer_buffer, ttusbir_probe() 364 usb_kill_urb(tt->bulk_urb); ttusbir_probe() 365 usb_free_urb(tt->bulk_urb); ttusbir_probe() 366 kfree(tt); ttusbir_probe() 375 struct ttusbir *tt = usb_get_intfdata(intf); ttusbir_disconnect() local 376 struct usb_device *udev = tt->udev; ttusbir_disconnect() 379 tt->udev = NULL; ttusbir_disconnect() 381 rc_unregister_device(tt->rc); ttusbir_disconnect() 382 led_classdev_unregister(&tt->led); ttusbir_disconnect() 384 usb_kill_urb(tt->urb[i]); ttusbir_disconnect() 385 usb_free_coherent(udev, 128, tt->urb[i]->transfer_buffer, ttusbir_disconnect() 386 tt->urb[i]->transfer_dma); ttusbir_disconnect() 387 usb_free_urb(tt->urb[i]); ttusbir_disconnect() 389 usb_kill_urb(tt->bulk_urb); ttusbir_disconnect() 390 usb_free_urb(tt->bulk_urb); ttusbir_disconnect() 392 kfree(tt); ttusbir_disconnect() 397 struct ttusbir *tt = usb_get_intfdata(intf); ttusbir_suspend() local 401 usb_kill_urb(tt->urb[i]); ttusbir_suspend() 403 led_classdev_suspend(&tt->led); ttusbir_suspend() 404 usb_kill_urb(tt->bulk_urb); ttusbir_suspend() 411 struct ttusbir *tt = usb_get_intfdata(intf); ttusbir_resume() local 414 tt->is_led_on = true; ttusbir_resume() 415 led_classdev_resume(&tt->led); ttusbir_resume() 418 rc = usb_submit_urb(tt->urb[i], GFP_KERNEL); ttusbir_resume() 420 dev_warn(tt->dev, "failed to submit urb: %d\n", rc); ttusbir_resume()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/ |
H A D | tt.c | 40 #include "tt.h" 84 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_is_low_power_state() local 86 if (tt->state >= IWL_TI_1) iwl_tt_is_low_power_state() 93 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_current_power_mode() local 95 return tt->tt_power_mode; iwl_tt_current_power_mode() 100 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_ht_enabled() local 105 restriction = tt->restriction + tt->state; iwl_ht_enabled() 136 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tx_ant_restriction() local 141 restriction = tt->restriction + tt->state; iwl_tx_ant_restriction() 147 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_rx_ant_restriction() local 152 restriction = tt->restriction + tt->state; iwl_rx_ant_restriction() 170 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_check_exit_ct_kill() local 176 if (tt->state == IWL_TI_CT_KILL) { iwl_tt_check_exit_ct_kill() 220 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_ready_for_ct_kill() local 226 if (tt->state != IWL_TI_CT_KILL) { iwl_tt_ready_for_ct_kill() 229 tt->state = IWL_TI_CT_KILL; iwl_tt_ready_for_ct_kill() 260 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_legacy_tt_handler() local 264 if ((tt->tt_previous_temp) && iwl_legacy_tt_handler() 265 (temp > tt->tt_previous_temp) && iwl_legacy_tt_handler() 266 ((temp - tt->tt_previous_temp) > iwl_legacy_tt_handler() 270 (temp - tt->tt_previous_temp)); iwl_legacy_tt_handler() 273 old_state = tt->state; iwl_legacy_tt_handler() 276 tt->state = IWL_TI_CT_KILL; iwl_legacy_tt_handler() 278 tt->state = IWL_TI_2; iwl_legacy_tt_handler() 280 tt->state = IWL_TI_1; iwl_legacy_tt_handler() 282 tt->state = IWL_TI_0; iwl_legacy_tt_handler() 285 tt->tt_previous_temp = temp; iwl_legacy_tt_handler() 289 if (tt->state != old_state) { iwl_legacy_tt_handler() 290 switch (tt->state) { iwl_legacy_tt_handler() 299 tt->tt_power_mode = IWL_POWER_INDEX_3; iwl_legacy_tt_handler() 302 tt->tt_power_mode = IWL_POWER_INDEX_4; iwl_legacy_tt_handler() 305 tt->tt_power_mode = IWL_POWER_INDEX_5; iwl_legacy_tt_handler() 311 if (tt->state != IWL_TI_CT_KILL && iwl_legacy_tt_handler() 318 tt->state = old_state; iwl_legacy_tt_handler() 322 if (tt->state == IWL_TI_CT_KILL) { iwl_legacy_tt_handler() 328 tt->state = old_state; iwl_legacy_tt_handler() 331 tt->state != IWL_TI_CT_KILL) iwl_legacy_tt_handler() 334 tt->state); iwl_legacy_tt_handler() 336 tt->tt_power_mode); iwl_legacy_tt_handler() 365 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_advance_tt_handler() local 371 old_state = tt->state; iwl_advance_tt_handler() 376 * tt->transaction + ((old_state * (IWL_TI_STATE_MAX - 1)) iwl_advance_tt_handler() 383 transaction = tt->transaction + iwl_advance_tt_handler() 388 if ((tt->tt_previous_temp) && iwl_advance_tt_handler() 389 (temp > tt->tt_previous_temp) && iwl_advance_tt_handler() 390 ((temp - tt->tt_previous_temp) > iwl_advance_tt_handler() 395 (temp - tt->tt_previous_temp)); iwl_advance_tt_handler() 397 tt->tt_previous_temp = temp; iwl_advance_tt_handler() 402 tt->state = iwl_advance_tt_handler() 411 if (tt->state >= IWL_TI_1) { iwl_advance_tt_handler() 413 tt->tt_power_mode = IWL_POWER_INDEX_5; iwl_advance_tt_handler() 451 if (tt->state != IWL_TI_CT_KILL && 460 tt->state = old_state; 464 tt->state); 466 tt->state == IWL_TI_CT_KILL) { 473 tt->state = old_state; 477 tt->state != IWL_TI_CT_KILL) { 499 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_bg_ct_enter() local 507 if (tt->state != IWL_TI_CT_KILL) { iwl_bg_ct_enter() 528 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_bg_ct_exit() local 539 if (tt->state == IWL_TI_CT_KILL) { iwl_bg_ct_exit() 606 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_initialize() local 612 memset(tt, 0, sizeof(struct iwl_tt_mgmt)); iwl_tt_initialize() 614 tt->state = IWL_TI_0; iwl_tt_initialize() 626 tt->restriction = kcalloc(IWL_TI_STATE_MAX, iwl_tt_initialize() 629 tt->transaction = kcalloc(IWL_TI_STATE_MAX * iwl_tt_initialize() 633 if (!tt->restriction || !tt->transaction) { iwl_tt_initialize() 636 kfree(tt->restriction); iwl_tt_initialize() 637 tt->restriction = NULL; iwl_tt_initialize() 638 kfree(tt->transaction); iwl_tt_initialize() 639 tt->transaction = NULL; iwl_tt_initialize() 641 transaction = tt->transaction + iwl_tt_initialize() 644 transaction = tt->transaction + iwl_tt_initialize() 647 transaction = tt->transaction + iwl_tt_initialize() 650 transaction = tt->transaction + iwl_tt_initialize() 655 memcpy(tt->restriction, iwl_tt_initialize() 668 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_tt_exit() local 680 kfree(tt->restriction); iwl_tt_exit() 681 tt->restriction = NULL; iwl_tt_exit() 682 kfree(tt->transaction); iwl_tt_exit() 683 tt->transaction = NULL; iwl_tt_exit()
|
H A D | tt.h | 93 * power mode based on the current tt state 97 * should be used in tt state; and can HT be enabled or not
|
H A D | debugfs.c | 505 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; iwl_dbgfs_thermal_throttling_read() local 513 tt->advanced_tt ? "Advance" : "Legacy"); iwl_dbgfs_thermal_throttling_read() 516 tt->state); iwl_dbgfs_thermal_throttling_read() 517 if (tt->advanced_tt) { iwl_dbgfs_thermal_throttling_read() 518 restriction = tt->restriction + tt->state; iwl_dbgfs_thermal_throttling_read()
|
H A D | dev.h | 53 #include "tt.h"
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
H A D | tt.c | 73 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; iwl_mvm_enter_ctkill() local 74 u32 duration = tt->params.ct_kill_duration; iwl_mvm_enter_ctkill() 82 tt->throttle = false; iwl_mvm_enter_ctkill() 83 tt->dynamic_smps = false; iwl_mvm_enter_ctkill() 90 schedule_delayed_work(&tt->ct_kill_exit, iwl_mvm_enter_ctkill() 232 struct iwl_mvm_tt_mgmt *tt; check_exit_ctkill() local 237 tt = container_of(work, struct iwl_mvm_tt_mgmt, ct_kill_exit.work); check_exit_ctkill() 238 mvm = container_of(tt, struct iwl_mvm, thermal_throttle); check_exit_ctkill() 240 duration = tt->params.ct_kill_duration; check_exit_ctkill() 264 if (temp <= tt->params.ct_kill_exit) { check_exit_ctkill() 343 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; iwl_mvm_tt_handler() local 363 if (!tt->dynamic_smps && iwl_mvm_tt_handler() 366 tt->dynamic_smps = true; iwl_mvm_tt_handler() 371 } else if (tt->dynamic_smps && iwl_mvm_tt_handler() 374 tt->dynamic_smps = false; iwl_mvm_tt_handler() 391 tx_backoff = tt->min_backoff; iwl_mvm_tt_handler() 395 tx_backoff = max(tt->min_backoff, iwl_mvm_tt_handler() 398 if (tx_backoff != tt->min_backoff) iwl_mvm_tt_handler() 400 if (tt->tx_backoff != tx_backoff) iwl_mvm_tt_handler() 404 if (!tt->throttle && throttle_enable) { iwl_mvm_tt_handler() 407 tt->throttle = true; iwl_mvm_tt_handler() 408 } else if (tt->throttle && !tt->dynamic_smps && iwl_mvm_tt_handler() 409 tt->tx_backoff == tt->min_backoff && iwl_mvm_tt_handler() 413 tt->throttle = false; iwl_mvm_tt_handler() 441 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; iwl_mvm_tt_initialize() local 446 tt->params = *mvm->cfg->thermal_params; iwl_mvm_tt_initialize() 448 tt->params = iwl_mvm_default_tt_params; iwl_mvm_tt_initialize() 450 tt->throttle = false; iwl_mvm_tt_initialize() 451 tt->dynamic_smps = false; iwl_mvm_tt_initialize() 452 tt->min_backoff = min_backoff; iwl_mvm_tt_initialize() 453 INIT_DELAYED_WORK(&tt->ct_kill_exit, check_exit_ctkill); iwl_mvm_tt_initialize()
|
/linux-4.4.14/net/batman-adv/ |
H A D | translation-table.c | 83 * batadv_choose_tt - return the index of the tt entry in the hash table 92 struct batadv_tt_common_entry *tt; batadv_choose_tt() local 95 tt = (struct batadv_tt_common_entry *)data; batadv_choose_tt() 96 hash = jhash(&tt->addr, ETH_ALEN, hash); batadv_choose_tt() 97 hash = jhash(&tt->vid, sizeof(tt->vid), hash); batadv_choose_tt() 116 struct batadv_tt_common_entry to_search, *tt, *tt_tmp = NULL; batadv_tt_hash_find() local 129 hlist_for_each_entry_rcu(tt, head, hash_entry) { hlist_for_each_entry_rcu() 130 if (!batadv_compare_eth(tt, addr)) hlist_for_each_entry_rcu() 133 if (tt->vid != vid) hlist_for_each_entry_rcu() 136 if (!atomic_inc_not_zero(&tt->refcount)) hlist_for_each_entry_rcu() 139 tt_tmp = tt; hlist_for_each_entry_rcu() 163 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.local_hash, addr, batadv_tt_local_hash_find() 188 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.global_hash, addr, batadv_tt_global_hash_find() 220 * @hash: hash table containing the tt entries 259 atomic_add(v, &vlan->tt.num_entries); batadv_tt_local_size_mod() 304 if (atomic_add_return(v, &vlan->tt.num_entries) == 0) { batadv_tt_global_size_mod() 339 * batadv_tt_orig_list_entry_release - release tt orig entry from lists and 341 * @orig_entry: tt orig entry to be free'd 388 spin_lock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_local_event() 389 list_for_each_entry_safe(entry, safe, &bat_priv->tt.changes_list, batadv_tt_local_event() 423 list_add_tail(&tt_change_node->list, &bat_priv->tt.changes_list); batadv_tt_local_event() 426 spin_unlock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_local_event() 429 atomic_dec(&bat_priv->tt.local_changes); batadv_tt_local_event() 431 atomic_inc(&bat_priv->tt.local_changes); batadv_tt_local_event() 435 * batadv_tt_len - compute length in bytes of given number of tt changes 436 * @changes_num: number of tt changes 473 tt_local_entries += atomic_read(&vlan->tt.num_entries); batadv_tt_local_table_transmit_size() 477 /* header size of tvlv encapsulated tt response payload */ batadv_tt_local_table_transmit_size() 488 if (bat_priv->tt.local_hash) batadv_tt_local_init() 491 bat_priv->tt.local_hash = batadv_hash_new(1024); batadv_tt_local_init() 493 if (!bat_priv->tt.local_hash) batadv_tt_local_init() 496 batadv_hash_set_lock_class(bat_priv->tt.local_hash, batadv_tt_local_init() 507 "Deleting global tt entry %pM (vid: %d): %s\n", batadv_tt_global_free() 511 batadv_hash_remove(bat_priv->tt.global_hash, batadv_compare_tt, batadv_tt_global_free() 589 "Local translation table size (%i) exceeds maximum packet size (%i); Ignoring new local tt entry: %pM\n", batadv_tt_local_add() 608 "Creating new local tt entry: %pM (vid: %d, ttvn: %d)\n", batadv_tt_local_add() 610 (u8)atomic_read(&bat_priv->tt.vn)); batadv_tt_local_add() 632 hash_added = batadv_hash_add(bat_priv->tt.local_hash, batadv_compare_tt, batadv_tt_local_add() 651 /* These node are probably going to update their tt table */ batadv_tt_local_add() 746 num_entries += atomic_read(&vlan->tt.num_entries); batadv_tt_prepare_tvlv_global_data() 772 tt_vlan->crc = htonl(vlan->tt.crc); batadv_tt_prepare_tvlv_global_data() 820 num_entries += atomic_read(&vlan->tt.num_entries); batadv_tt_prepare_tvlv_local_data() 840 (*tt_data)->ttvn = atomic_read(&bat_priv->tt.vn); batadv_tt_prepare_tvlv_local_data() 846 tt_vlan->crc = htonl(vlan->tt.crc); batadv_tt_prepare_tvlv_local_data() 861 * after local tt changes have been committed 874 tt_diff_entries_num = atomic_read(&bat_priv->tt.local_changes); batadv_tt_tvlv_container_update() 878 * and wait for the tt table request which will be fragmented batadv_tt_tvlv_container_update() 893 spin_lock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_tvlv_container_update() 894 atomic_set(&bat_priv->tt.local_changes, 0); batadv_tt_tvlv_container_update() 896 list_for_each_entry_safe(entry, safe, &bat_priv->tt.changes_list, batadv_tt_tvlv_container_update() 907 spin_unlock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_tvlv_container_update() 910 spin_lock_bh(&bat_priv->tt.last_changeset_lock); batadv_tt_tvlv_container_update() 911 kfree(bat_priv->tt.last_changeset); batadv_tt_tvlv_container_update() 912 bat_priv->tt.last_changeset_len = 0; batadv_tt_tvlv_container_update() 913 bat_priv->tt.last_changeset = NULL; batadv_tt_tvlv_container_update() 920 bat_priv->tt.last_changeset = kzalloc(tt_diff_len, GFP_ATOMIC); batadv_tt_tvlv_container_update() 921 if (bat_priv->tt.last_changeset) { batadv_tt_tvlv_container_update() 922 memcpy(bat_priv->tt.last_changeset, batadv_tt_tvlv_container_update() 924 bat_priv->tt.last_changeset_len = tt_diff_len; batadv_tt_tvlv_container_update() 927 spin_unlock_bh(&bat_priv->tt.last_changeset_lock); batadv_tt_tvlv_container_update() 939 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_seq_print_text() 959 net_dev->name, (u8)atomic_read(&bat_priv->tt.vn)); batadv_tt_local_seq_print_text() 1004 vlan->tt.crc); hlist_for_each_entry_rcu() 1030 "Local tt entry (%pM, vid: %d) pending to be removed: %s\n", batadv_tt_local_set_pending() 1081 tt_entry_exists = batadv_hash_remove(bat_priv->tt.local_hash, batadv_tt_local_remove() 1088 /* extra call to free the local tt entry */ batadv_tt_local_remove() 1107 * batadv_tt_local_purge_list - purge inactive tt local entries 1109 * @head: pointer to the list containing the local tt entries 1110 * @timeout: parameter deciding whether a given tt local entry is considered 1142 * batadv_tt_local_purge - purge inactive tt local entries 1144 * @timeout: parameter deciding whether a given tt local entry is considered 1150 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_purge() 1176 if (!bat_priv->tt.local_hash) batadv_tt_local_table_free() 1179 hash = bat_priv->tt.local_hash; batadv_tt_local_table_free() 1208 bat_priv->tt.local_hash = NULL; 1213 if (bat_priv->tt.global_hash) batadv_tt_global_init() 1216 bat_priv->tt.global_hash = batadv_hash_new(1024); batadv_tt_global_init() 1218 if (!bat_priv->tt.global_hash) batadv_tt_global_init() 1221 batadv_hash_set_lock_class(bat_priv->tt.global_hash, batadv_tt_global_init() 1231 spin_lock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_changes_list_free() 1233 list_for_each_entry_safe(entry, safe, &bat_priv->tt.changes_list, batadv_tt_changes_list_free() 1239 atomic_set(&bat_priv->tt.local_changes, 0); batadv_tt_changes_list_free() 1240 spin_unlock_bh(&bat_priv->tt.changes_list_lock); batadv_tt_changes_list_free() 1334 * @ttvn: the tt version number ever announcing this non-mesh client 1397 hash_added = batadv_hash_add(bat_priv->tt.global_hash, batadv_tt_global_add() 1464 "Creating new global tt entry: %pM (vid: %d, via %pM)\n", batadv_tt_global_add() 1478 "global tt received", batadv_tt_global_add() 1497 * batadv_transtable_best_orig - Get best originator list entry from tt entry 1583 last_ttvn, vlan->tt.crc, batadv_tt_global_print_entry() 1615 last_ttvn, vlan->tt.crc, hlist_for_each_entry_rcu() 1629 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_seq_print_text() 1709 * batadv_tt_global_del_orig_node - remove orig_node from a global tt entry 1716 * global tt entry. 1735 "Deleting %pM from global tt entry %pM (vid: %d): %s\n", hlist_for_each_entry_safe() 1868 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_del_orig() 1898 "Deleting global tt entry %pM (vid: %d): %s\n", hlist_for_each_entry_safe() 1934 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_purge() 1958 "Deleting global tt entry %pM (vid: %d): %s\n", hlist_for_each_entry_safe() 1981 if (!bat_priv->tt.global_hash) batadv_tt_global_table_free() 1984 hash = bat_priv->tt.global_hash; batadv_tt_global_table_free() 2004 bat_priv->tt.global_hash = NULL; 2113 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_crc() 2189 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_crc() 2238 spin_lock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_list_free() 2240 hlist_for_each_entry_safe(node, safe, &bat_priv->tt.req_list, list) { batadv_tt_req_list_free() 2245 spin_unlock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_list_free() 2274 spin_lock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_purge() 2275 hlist_for_each_entry_safe(node, safe, &bat_priv->tt.req_list, list) { batadv_tt_req_purge() 2282 spin_unlock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_purge() 2299 spin_lock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_node_new() 2300 hlist_for_each_entry(tt_req_node_tmp, &bat_priv->tt.req_list, list) { batadv_tt_req_node_new() 2314 hlist_add_head(&tt_req_node->list, &bat_priv->tt.req_list); batadv_tt_req_node_new() 2316 spin_unlock_bh(&bat_priv->tt.req_list_lock); batadv_tt_req_node_new() 2321 * batadv_tt_local_valid - verify that given tt entry is a valid one 2322 * @entry_ptr: to be checked local tt entry 2355 * batadv_tt_tvlv_generate - fill the tvlv buff with the tt entries from the 2356 * specified tt hash 2358 * @hash: hash table containing the tt entries 2359 * @tt_len: expected tvlv tt data buffer length in number of bytes 2361 * @valid_cb: function to filter tt change entries 2440 crc = vlan->tt.crc; batadv_tt_global_check_crc() 2461 vlan->tt.crc = batadv_tt_local_crc(bat_priv, vlan->vid); batadv_tt_local_update_crc() 2488 vlan->tt.crc = crc; batadv_tt_global_update_crc() 2564 spin_lock_bh(&bat_priv->tt.req_list_lock); batadv_send_tt_request() 2567 spin_unlock_bh(&bat_priv->tt.req_list_lock); batadv_send_tt_request() 2575 * batadv_send_other_tt_response - send reply to tt request concerning another 2578 * @tt_data: tt data containing the tt request information 2579 * @req_src: mac address of tt request sender 2580 * @req_dst: mac address of tt request recipient 2582 * Returns true if tt request reply was sent, false otherwise. 2660 batadv_tt_tvlv_generate(bat_priv, bat_priv->tt.global_hash, batadv_send_other_tt_response() 2708 * batadv_send_my_tt_response - send reply to tt request concerning this node's 2711 * @tt_data: tt data containing the tt request information 2712 * @req_src: mac address of tt request sender 2714 * Returns true if tt request reply was sent, false otherwise. 2734 spin_lock_bh(&bat_priv->tt.commit_lock); batadv_send_my_tt_response() 2736 my_ttvn = (u8)atomic_read(&bat_priv->tt.vn); batadv_send_my_tt_response() 2751 !bat_priv->tt.last_changeset) batadv_send_my_tt_response() 2760 spin_lock_bh(&bat_priv->tt.last_changeset_lock); batadv_send_my_tt_response() 2762 tt_len = bat_priv->tt.last_changeset_len; batadv_send_my_tt_response() 2771 memcpy(tt_change, bat_priv->tt.last_changeset, batadv_send_my_tt_response() 2772 bat_priv->tt.last_changeset_len); batadv_send_my_tt_response() 2773 spin_unlock_bh(&bat_priv->tt.last_changeset_lock); batadv_send_my_tt_response() 2775 req_ttvn = (u8)atomic_read(&bat_priv->tt.vn); batadv_send_my_tt_response() 2789 batadv_tt_tvlv_generate(bat_priv, bat_priv->tt.local_hash, batadv_send_my_tt_response() 2813 spin_unlock_bh(&bat_priv->tt.last_changeset_lock); batadv_send_my_tt_response() 2815 spin_unlock_bh(&bat_priv->tt.commit_lock); batadv_send_my_tt_response() 2826 * batadv_send_tt_response - send reply to tt request 2828 * @tt_data: tt data containing the tt request information 2829 * @req_src: mac address of tt request sender 2830 * @req_dst: mac address of tt request recipient 2832 * Returns true if tt request reply was sent, false otherwise. 2858 "tt removed by changes", _batadv_tt_update_changes() 2952 * batadv_handle_tt_response - process incoming tt reply 2954 * @tt_data: tt data containing the tt request information 2955 * @resp_src: mac address of tt reply sender 2956 * @num_entries: number of tt change entries appended to the tt data 3000 spin_lock_bh(&bat_priv->tt.req_list_lock); batadv_handle_tt_response() 3001 hlist_for_each_entry_safe(node, safe, &bat_priv->tt.req_list, list) { batadv_handle_tt_response() 3008 spin_unlock_bh(&bat_priv->tt.req_list_lock); batadv_handle_tt_response() 3018 spin_lock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_roam_list_free() 3020 list_for_each_entry_safe(node, safe, &bat_priv->tt.roam_list, list) { batadv_tt_roam_list_free() 3025 spin_unlock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_roam_list_free() 3032 spin_lock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_roam_purge() 3033 list_for_each_entry_safe(node, safe, &bat_priv->tt.roam_list, list) { batadv_tt_roam_purge() 3041 spin_unlock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_roam_purge() 3055 spin_lock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_check_roam_count() 3059 list_for_each_entry(tt_roam_node, &bat_priv->tt.roam_list, list) { batadv_tt_check_roam_count() 3084 list_add(&tt_roam_node->list, &bat_priv->tt.roam_list); batadv_tt_check_roam_count() 3089 spin_unlock_bh(&bat_priv->tt.roam_list_lock); batadv_tt_check_roam_count() 3148 bat_priv = container_of(priv_tt, struct batadv_priv, tt); batadv_tt_purge() 3155 queue_delayed_work(batadv_event_workqueue, &bat_priv->tt.work, batadv_tt_purge() 3164 cancel_delayed_work_sync(&bat_priv->tt.work); batadv_tt_free() 3172 kfree(bat_priv->tt.last_changeset); batadv_tt_free() 3186 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_set_flags() 3222 /* Purge out all the tt local entries marked with BATADV_TT_CLIENT_PENDING */ batadv_tt_local_purge_pending_clients() 3225 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_purge_pending_clients() 3248 "Deleting local tt entry (%pM, vid: %d): pending\n", hlist_for_each_entry_safe() 3272 * batadv_tt_local_commit_changes_nolock - commit all pending local tt changes 3276 * Caller must hold tt->commit_lock. 3280 lockdep_assert_held(&bat_priv->tt.commit_lock); batadv_tt_local_commit_changes_nolock() 3285 if (atomic_read(&bat_priv->tt.local_changes) < 1) { batadv_tt_local_commit_changes_nolock() 3286 if (!batadv_atomic_dec_not_zero(&bat_priv->tt.ogm_append_cnt)) batadv_tt_local_commit_changes_nolock() 3297 atomic_inc(&bat_priv->tt.vn); batadv_tt_local_commit_changes_nolock() 3300 (u8)atomic_read(&bat_priv->tt.vn)); batadv_tt_local_commit_changes_nolock() 3303 atomic_set(&bat_priv->tt.ogm_append_cnt, BATADV_TT_OGM_APPEND_MAX); batadv_tt_local_commit_changes_nolock() 3308 * batadv_tt_local_commit_changes - commit all pending local tt changes which 3314 spin_lock_bh(&bat_priv->tt.commit_lock); batadv_tt_local_commit_changes() 3316 spin_unlock_bh(&bat_priv->tt.commit_lock); batadv_tt_local_commit_changes() 3355 * batadv_tt_update_orig - update global translation table with new tt 3362 * @tt_num_changes: number of tt changes inside the tt buffer 3388 * In this case send a tt request batadv_tt_update_orig() 3422 * in sync anymore -> request fresh tt data batadv_tt_update_orig() 3527 spin_lock_bh(&bat_priv->tt.commit_lock); batadv_tt_local_resize_to_mtu() 3540 "Forced to purge local tt entries to fit new maximum fragment MTU (%i)\n", batadv_tt_local_resize_to_mtu() 3550 spin_unlock_bh(&bat_priv->tt.commit_lock); batadv_tt_local_resize_to_mtu() 3554 * batadv_tt_tvlv_ogm_handler_v1 - process incoming tt tvlv container 3593 * batadv_tt_tvlv_unicast_handler_v1 - process incoming (unicast) tt tvlv 3596 * @src: mac address of tt tvlv sender 3597 * @dst: mac address of tt tvlv recipient 3598 * @tvlv_value: tvlv buffer containing the tt data 3601 * Returns NET_RX_DROP if the tt tvlv is to be re-routed, NET_RX_SUCCESS 3675 * batadv_roam_tvlv_unicast_handler_v1 - process incoming tt roam tvlv container 3677 * @src: mac address of tt tvlv sender 3678 * @dst: mac address of tt tvlv recipient 3679 * @tvlv_value: tvlv buffer containing the tt data 3682 * Returns NET_RX_DROP if the tt roam tvlv is to be re-routed, NET_RX_SUCCESS 3753 INIT_DELAYED_WORK(&bat_priv->tt.work, batadv_tt_purge); batadv_tt_init() 3754 queue_delayed_work(batadv_event_workqueue, &bat_priv->tt.work, batadv_tt_init() 3772 struct batadv_tt_global_entry *tt; batadv_tt_global_is_isolated() local 3775 tt = batadv_tt_global_hash_find(bat_priv, addr, vid); batadv_tt_global_is_isolated() 3776 if (!tt) batadv_tt_global_is_isolated() 3779 ret = tt->common.flags & BATADV_TT_CLIENT_ISOLA; batadv_tt_global_is_isolated() 3781 batadv_tt_global_entry_free_ref(tt); batadv_tt_global_is_isolated()
|
H A D | types.h | 185 * @tt: VLAN specific TT attributes 192 struct batadv_vlan_tt tt; member in struct:batadv_orig_node_vlan 233 * @tt_buff: last tt changeset this node received from the orig node 234 * @tt_buff_len: length of the last tt changeset this node received from the 314 * @BATADV_ORIG_CAPA_HAS_TT: orig node has tt capability 437 * @BATADV_CNT_TT_REQUEST_TX: transmitted tt req traffic packet counter 438 * @BATADV_CNT_TT_REQUEST_RX: received tt req traffic packet counter 439 * @BATADV_CNT_TT_RESPONSE_TX: transmitted tt resp traffic packet counter 440 * @BATADV_CNT_TT_RESPONSE_RX: received tt resp traffic packet counter 441 * @BATADV_CNT_TT_ROAM_ADV_TX: transmitted tt roam traffic packet counter 442 * @BATADV_CNT_TT_ROAM_ADV_RX: received tt roam traffic packet counter 510 * @ogm_append_cnt: counter of number of OGMs containing the local tt diff 512 * @changes_list: tracks tt local changes within an originator interval 521 * @last_changeset: last tt changeset this host has generated 522 * @last_changeset_len: length of last tt changeset this host has generated 710 * @tt: TT private attributes (VLAN specific) 720 struct batadv_vlan_tt tt; member in struct:batadv_softif_vlan 771 * @tt: translation table data 830 struct batadv_priv_tt tt; member in struct:batadv_priv 926 * struct batadv_tt_common_entry - tt local & tt global common data 932 * @added_at: timestamp used for purging stale tt common entries 949 * @last_seen: timestamp used for purging stale tt local entries 989 * struct batadv_tt_change_node - structure for tt changes occurred 999 * struct batadv_tt_req_node - data to keep track of the tt requests in flight 1001 * @issued_at: timestamp used for purging stale tt requests
|
H A D | packet.h | 108 /* tt data subtypes */ 112 * enum batadv_tt_data_flags - flags for tt data tvlv 421 * @first_ttvn: tt-version number of first included packet 427 * @second_ttvn: tt version number of second included packet 496 * struct batadv_tvlv_tt_data - tt data propagated through the tt tvlv container 509 * struct batadv_tvlv_tt_vlan_data - vlan specific tt data propagated through 510 * the tt tvlv container 526 * @addr: mac address of non-mesh client that triggered this tt change
|
H A D | main.c | 130 spin_lock_init(&bat_priv->tt.changes_list_lock); batadv_mesh_init() 131 spin_lock_init(&bat_priv->tt.req_list_lock); batadv_mesh_init() 132 spin_lock_init(&bat_priv->tt.roam_list_lock); batadv_mesh_init() 133 spin_lock_init(&bat_priv->tt.last_changeset_lock); batadv_mesh_init() 134 spin_lock_init(&bat_priv->tt.commit_lock); batadv_mesh_init() 151 INIT_LIST_HEAD(&bat_priv->tt.changes_list); batadv_mesh_init() 152 INIT_HLIST_HEAD(&bat_priv->tt.req_list); batadv_mesh_init() 153 INIT_LIST_HEAD(&bat_priv->tt.roam_list); batadv_mesh_init()
|
H A D | multicast.c | 118 lockdep_assert_held(&bat_priv->tt.commit_lock); batadv_mcast_mla_list_free() 142 lockdep_assert_held(&bat_priv->tt.commit_lock); batadv_mcast_mla_tt_retract() 174 lockdep_assert_held(&bat_priv->tt.commit_lock); batadv_mcast_mla_tt_add() 420 * batadv_mcast_forw_tt_node_get - get a multicast tt node
|
H A D | soft-interface.c | 806 atomic_set(&bat_priv->tt.vn, 0); batadv_softif_init_late() 807 atomic_set(&bat_priv->tt.local_changes, 0); batadv_softif_init_late() 808 atomic_set(&bat_priv->tt.ogm_append_cnt, 0); batadv_softif_init_late() 812 bat_priv->tt.last_changeset = NULL; batadv_softif_init_late() 813 bat_priv->tt.last_changeset_len = 0; batadv_softif_init_late()
|
H A D | main.h | 60 /* number of OGMs sent with the last tt diff */
|
H A D | routing.c | 677 orig_ttvn = (u8)atomic_read(&bat_priv->tt.vn); batadv_reroute_unicast_packet() 752 curr_ttvn = (u8)atomic_read(&bat_priv->tt.vn); batadv_check_unicast_ttvn()
|
H A D | send.c | 188 /* set the destination tt version number */ batadv_send_skb_push_fill_unicast()
|
H A D | bat_iv_ogm.c | 909 /* tt changes have to be committed before the tvlv data is batadv_iv_ogm_schedule() 910 * appended as it may alter the tt tvlv container batadv_iv_ogm_schedule()
|
/linux-4.4.14/lib/lzo/ |
H A D | lzo1x_compress.c | 70 size_t tt = t - 18; lzo1x_1_do_compress() local 72 while (unlikely(tt > 255)) { lzo1x_1_do_compress() 73 tt -= 255; lzo1x_1_do_compress() 76 *op++ = tt; lzo1x_1_do_compress() 249 size_t tt = t - 18; lzo1x_1_compress() local 251 while (tt > 255) { lzo1x_1_compress() 252 tt -= 255; lzo1x_1_compress() 255 *op++ = tt; lzo1x_1_compress()
|
/linux-4.4.14/arch/um/drivers/ |
H A D | fd.c | 18 struct termios tt; member in struct:fd_chan 56 CATCH_EINTR(err = tcgetattr(data->fd, &data->tt)); fd_open() 77 CATCH_EINTR(err = tcsetattr(fd, TCSAFLUSH, &data->tt)); fd_close()
|
H A D | tty.c | 16 struct termios tt; member in struct:tty_chan 57 CATCH_EINTR(err = tcgetattr(fd, &data->tt)); tty_open()
|
H A D | port_user.c | 19 struct termios tt; member in struct:port_chan 78 CATCH_EINTR(err = tcgetattr(fd, &data->tt)); port_open()
|
H A D | pty.c | 22 struct termios tt; member in struct:pty_chan 55 CATCH_EINTR(err = tcgetattr(fd, &data->tt)); pts_open()
|
H A D | xterm.c | 24 struct termios tt; member in struct:xterm_chan 167 CATCH_EINTR(err = tcgetattr(new, &data->tt)); xterm_open()
|
/linux-4.4.14/drivers/lightnvm/ |
H A D | core.c | 39 struct nvm_tgt_type *tt; nvm_find_target_type() local 41 list_for_each_entry(tt, &nvm_targets, list) nvm_find_target_type() 42 if (!strcmp(name, tt->name)) nvm_find_target_type() 43 return tt; nvm_find_target_type() 48 int nvm_register_target(struct nvm_tgt_type *tt) nvm_register_target() argument 53 if (nvm_find_target_type(tt->name)) nvm_register_target() 56 list_add(&tt->list, &nvm_targets); nvm_register_target() 63 void nvm_unregister_target(struct nvm_tgt_type *tt) nvm_unregister_target() argument 65 if (!tt) nvm_unregister_target() 69 list_del(&tt->list); nvm_unregister_target() 385 struct nvm_tgt_type *tt; nvm_create_target() local 395 tt = nvm_find_target_type(create->tgttype); nvm_create_target() 396 if (!tt) { nvm_create_target() 418 blk_queue_make_request(tqueue, tt->make_rq); nvm_create_target() 431 targetdata = tt->init(dev, tdisk, s->lun_begin, s->lun_end); nvm_create_target() 440 set_capacity(tdisk, tt->capacity(targetdata)); nvm_create_target() 443 t->type = tt; nvm_create_target() 462 struct nvm_tgt_type *tt = t->type; nvm_remove_target() local 471 if (tt->exit) nvm_remove_target() 472 tt->exit(tdisk->private_data); nvm_remove_target() 664 struct nvm_tgt_type *tt; nvm_ioctl_info() local 679 list_for_each_entry(tt, &nvm_targets, list) { nvm_ioctl_info() 682 tgt->version[0] = tt->version[0]; nvm_ioctl_info() 683 tgt->version[1] = tt->version[1]; nvm_ioctl_info() 684 tgt->version[2] = tt->version[2]; nvm_ioctl_info() 685 strncpy(tgt->tgtname, tt->name, NVM_TTYPE_NAME_MAX); nvm_ioctl_info()
|
H A D | gennvm.c | 419 ret += ins->tt->end_io(rqd, error); gennvm_end_io()
|
H A D | rrpc.c | 1278 rrpc->instance.tt = &tt_rrpc; rrpc_init()
|
/linux-4.4.14/drivers/scsi/libfc/ |
H A D | fc_disc.c | 73 lport->tt.rport_logoff(rdata); fc_disc_stop_rports() 153 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); fc_disc_recv_rscn_req() 181 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); fc_disc_recv_rscn_req() 296 lport->tt.rport_login(rdata); fc_disc_done() 298 lport->tt.rport_logoff(rdata); fc_disc_done() 375 if (lport->tt.elsct_send(lport, 0, fp, fc_disc_gpn_ft_req() 449 rdata = lport->tt.rport_create(lport, ids.port_id); fc_disc_gpn_ft_parse() 616 lport->tt.rport_logoff(rdata); fc_disc_gpn_id_resp() 618 new_rdata = lport->tt.rport_create(lport, fc_disc_gpn_id_resp() 622 lport->tt.rport_login(new_rdata); fc_disc_gpn_id_resp() 627 lport->tt.rport_login(rdata); fc_disc_gpn_id_resp() 631 lport->tt.rport_logoff(rdata); fc_disc_gpn_id_resp() 640 kref_put(&rdata->kref, lport->tt.rport_destroy); fc_disc_gpn_id_resp() 661 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, fc_disc_gpn_id_req() 681 rdata = lport->tt.rport_create(lport, dp->port_id); fc_disc_single() 711 lport->tt.rport_flush_queue(); fc_disc_stop_final() 723 if (!lport->tt.disc_start) fc_disc_config() 724 lport->tt.disc_start = fc_disc_start; fc_disc_config() 726 if (!lport->tt.disc_stop) fc_disc_config() 727 lport->tt.disc_stop = fc_disc_stop; fc_disc_config() 729 if (!lport->tt.disc_stop_final) fc_disc_config() 730 lport->tt.disc_stop_final = fc_disc_stop_final; fc_disc_config() 732 if (!lport->tt.disc_recv_req) fc_disc_config() 733 lport->tt.disc_recv_req = fc_disc_recv_req; fc_disc_config()
|
H A D | fc_rport.c | 125 rdata = lport->tt.rport_lookup(lport, port_id); fc_rport_create() 150 rdata->lld_event_callback = lport->tt.rport_event_callback; fc_rport_create() 273 lport->tt.rport_logoff(rdata); fc_rport_work() 274 kref_put(&rdata->kref, lport->tt.rport_destroy); fc_rport_work() 300 kref_put(&rdata->kref, lport->tt.rport_destroy); fc_rport_work() 331 lport->tt.exch_mgr_reset(lport, 0, port_id); fc_rport_work() 332 lport->tt.exch_mgr_reset(lport, port_id, 0); fc_rport_work() 349 kref_put(&rdata->kref, lport->tt.rport_destroy); fc_rport_work() 362 kref_put(&rdata->kref, lport->tt.rport_destroy); fc_rport_work() 705 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); fc_rport_flogi_resp() 737 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_FLOGI, fc_rport_enter_flogi() 780 rdata = lport->tt.rport_lookup(lport, sid); fc_rport_recv_flogi_req() 846 lport->tt.frame_send(lport, fp); fc_rport_recv_flogi_req() 860 lport->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_flogi_req() 926 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); fc_rport_plogi_resp() 975 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_PLOGI, fc_rport_enter_plogi() 1079 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); fc_rport_prli_resp() 1131 if (!lport->tt.exch_seq_send(lport, fp, fc_rport_prli_resp, fc_rport_enter_prli() 1201 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); fc_rport_rtv_resp() 1227 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_RTV, fc_rport_enter_rtv() 1271 (void)lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_LOGO, fc_rport_enter_logo() 1330 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); fc_rport_adisc_resp() 1355 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_ADISC, fc_rport_enter_adisc() 1384 lport->tt.seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_adisc_req() 1395 lport->tt.frame_send(lport, fp); fc_rport_recv_adisc_req() 1441 if (lport->tt.get_lesb) { fc_rport_recv_rls_req() 1443 lport->tt.get_lesb(lport, lesb); fc_rport_recv_rls_req() 1456 lport->tt.frame_send(lport, fp); fc_rport_recv_rls_req() 1460 lport->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_rls_req() 1481 rdata = lport->tt.rport_lookup(lport, fc_frame_sid(fp)); fc_rport_recv_els_req() 1511 lport->tt.seq_els_rsp_send(fp, ELS_RRQ, NULL); fc_rport_recv_els_req() 1515 lport->tt.seq_els_rsp_send(fp, ELS_REC, NULL); fc_rport_recv_els_req() 1532 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &els_data); fc_rport_recv_els_req() 1574 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &els_data); fc_rport_recv_req() 1611 rdata = lport->tt.rport_create(lport, sid); fc_rport_recv_plogi_req() 1691 lport->tt.frame_send(lport, fp); fc_rport_recv_plogi_req() 1699 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_plogi_req() 1802 lport->tt.frame_send(lport, fp); fc_rport_recv_prli_req() 1817 lport->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_prli_req() 1881 lport->tt.frame_send(lport, fp); fc_rport_recv_prlo_req() 1888 lport->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); fc_rport_recv_prlo_req() 1906 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); fc_rport_recv_logo_req() 1911 rdata = lport->tt.rport_lookup(lport, sid); fc_rport_recv_logo_req() 1940 if (!lport->tt.rport_lookup) fc_rport_init() 1941 lport->tt.rport_lookup = fc_rport_lookup; fc_rport_init() 1943 if (!lport->tt.rport_create) fc_rport_init() 1944 lport->tt.rport_create = fc_rport_create; fc_rport_init() 1946 if (!lport->tt.rport_login) fc_rport_init() 1947 lport->tt.rport_login = fc_rport_login; fc_rport_init() 1949 if (!lport->tt.rport_logoff) fc_rport_init() 1950 lport->tt.rport_logoff = fc_rport_logoff; fc_rport_init() 1952 if (!lport->tt.rport_recv_req) fc_rport_init() 1953 lport->tt.rport_recv_req = fc_rport_recv_req; fc_rport_init() 1955 if (!lport->tt.rport_flush_queue) fc_rport_init() 1956 lport->tt.rport_flush_queue = fc_rport_flush_queue; fc_rport_init() 1958 if (!lport->tt.rport_destroy) fc_rport_init() 1959 lport->tt.rport_destroy = fc_rport_destroy; fc_rport_init() 2066 lport->tt.exch_mgr_reset(lport, 0, rport->port_id); fc_rport_terminate_io() 2067 lport->tt.exch_mgr_reset(lport, rport->port_id, 0); fc_rport_terminate_io()
|
H A D | fc_lport.c | 203 lport->tt.rport_logoff(rdata); fc_lport_rport_callback() 247 lport->tt.rport_logoff(lport->ptp_rdata); fc_lport_ptp_setup() 248 kref_put(&lport->ptp_rdata->kref, lport->tt.rport_destroy); fc_lport_ptp_setup() 250 lport->ptp_rdata = lport->tt.rport_create(lport, remote_fid); fc_lport_ptp_setup() 256 lport->tt.rport_login(lport->ptp_rdata); fc_lport_ptp_setup() 415 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); fc_lport_recv_rlir_req() 450 lport->tt.frame_send(lport, fp); fc_lport_recv_echo_req() 484 lport->tt.seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); fc_lport_recv_rnid_req() 508 lport->tt.frame_send(lport, fp); fc_lport_recv_rnid_req() 524 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); fc_lport_recv_logo_req() 595 lport->tt.fcp_cleanup(lport); __fc_linkdown() 623 lport->tt.disc_stop_final(lport); fc_fabric_logoff() 626 lport->tt.rport_logoff(lport->dns_rdata); fc_fabric_logoff() 628 lport->tt.rport_flush_queue(); fc_fabric_logoff() 652 lport->tt.frame_send = fc_frame_drop; fc_lport_destroy() 655 lport->tt.fcp_abort_io(lport); fc_lport_destroy() 656 lport->tt.disc_stop_final(lport); fc_lport_destroy() 657 lport->tt.exch_mgr_reset(lport, 0, 0); fc_lport_destroy() 740 lport->tt.disc_start(fc_lport_disc_callback, lport); fc_lport_enter_ready() 764 if (lport->tt.lport_set_port_id) fc_lport_set_port_id() 765 lport->tt.lport_set_port_id(lport, port_id, fp); fc_lport_set_port_id() 865 lport->tt.frame_send(lport, fp); fc_lport_recv_flogi_req() 905 recv = lport->tt.rport_recv_req; fc_lport_recv_els_req() 916 recv = lport->tt.disc_recv_req; fc_lport_recv_els_req() 984 lport->tt.exch_done(sp); fc_lport_recv_req() 1014 lport->tt.rport_logoff(lport->dns_rdata); fc_lport_reset_locked() 1017 lport->tt.rport_logoff(lport->ptp_rdata); fc_lport_reset_locked() 1018 kref_put(&lport->ptp_rdata->kref, lport->tt.rport_destroy); fc_lport_reset_locked() 1022 lport->tt.disc_stop(lport); fc_lport_reset_locked() 1024 lport->tt.exch_mgr_reset(lport, 0, 0); fc_lport_reset_locked() 1339 if (!lport->tt.elsct_send(lport, FC_FID_FCTRL, fp, ELS_SCR, fc_lport_enter_scr() 1405 if (!lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, cmd, fc_lport_enter_ns() 1432 rdata = lport->tt.rport_create(lport, FC_FID_DIR_SERV); fc_lport_enter_dns() 1438 lport->tt.rport_login(rdata); fc_lport_enter_dns() 1526 if (!lport->tt.elsct_send(lport, FC_FID_MGMT_SERV, fp, cmd, fc_lport_enter_ms() 1549 rdata = lport->tt.rport_create(lport, FC_FID_MGMT_SERV); fc_lport_enter_fdmi() 1555 lport->tt.rport_login(rdata); fc_lport_enter_fdmi() 1688 if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, ELS_LOGO, fc_lport_enter_logo() 1831 if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, fc_lport_enter_flogi() 1864 if (!lport->tt.lport_recv) fc_lport_init() 1865 lport->tt.lport_recv = fc_lport_recv_req; fc_lport_init() 1867 if (!lport->tt.lport_reset) fc_lport_init() 1868 lport->tt.lport_reset = fc_lport_reset; fc_lport_init() 2011 if (!lport->tt.exch_seq_send(lport, fp, fc_lport_bsg_resp, fc_lport_els_request() 2072 if (!lport->tt.exch_seq_send(lport, fp, fc_lport_bsg_resp, fc_lport_ct_request() 2127 rdata = lport->tt.rport_lookup(lport, did); fc_lport_bsg_request()
|
H A D | fc_elsct.c | 70 return lport->tt.exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); fc_elsct_send() 80 if (!lport->tt.elsct_send) fc_elsct_init() 81 lport->tt.elsct_send = fc_elsct_send; fc_elsct_init()
|
H A D | fc_fcp.c | 274 return fsp->lp->tt.seq_exch_abort(fsp->seq_ptr, 0); fc_fcp_send_abort() 289 fsp->lp->tt.exch_done(fsp->seq_ptr); fc_fcp_retry_cmd() 310 (lport->lro_enabled) && (lport->tt.ddp_setup)) { fc_fcp_ddp_setup() 311 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), fc_fcp_ddp_setup() 333 if (lport->tt.ddp_done) { fc_fcp_ddp_done() 334 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); fc_fcp_ddp_done() 612 seq = lport->tt.seq_start_next(seq); fc_fcp_send_data() 690 error = lport->tt.seq_send(lport, seq, fp); fc_fcp_send_data() 973 csp = lport->tt.seq_start_next(seq); fc_fcp_complete_locked() 982 lport->tt.seq_send(lport, csp, conf_frame); fc_fcp_complete_locked() 985 lport->tt.exch_done(seq); fc_fcp_complete_locked() 1006 lport->tt.exch_done(fsp->seq_ptr); fc_fcp_cleanup_cmd() 1107 rc = lport->tt.fcp_cmd_send(lport, fsp, fc_fcp_recv); fc_fcp_pkt_send() 1168 seq = lport->tt.exch_seq_send(lport, fp, resp, fc_fcp_pkt_destroy, fc_fcp_cmd_send() 1257 if (lport->tt.fcp_cmd_send(lport, fsp, fc_tm_done)) { fc_lun_reset_send() 1304 lport->tt.exch_done(fsp->seq_ptr); fc_lun_reset() 1358 fsp->lp->tt.exch_done(seq); fc_tm_done() 1439 if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC, fc_fcp_rec() 1696 seq = lport->tt.exch_seq_send(lport, fp, fc_fcp_srr_resp, fc_fcp_srr() 1756 fsp->lp->tt.exch_done(seq); fc_fcp_srr_resp() 1784 fsp->lp->tt.exch_done(fsp->recov_seq); fc_fcp_srr_error() 2145 lport->tt.lport_reset(lport); fc_eh_host_reset() 2232 if (!lport->tt.fcp_cmd_send) fc_fcp_init() 2233 lport->tt.fcp_cmd_send = fc_fcp_cmd_send; fc_fcp_init() 2235 if (!lport->tt.fcp_cleanup) fc_fcp_init() 2236 lport->tt.fcp_cleanup = fc_fcp_cleanup; fc_fcp_init() 2238 if (!lport->tt.fcp_abort_io) fc_fcp_init() 2239 lport->tt.fcp_abort_io = fc_fcp_abort_io; fc_fcp_init()
|
H A D | fc_exch.c | 502 error = lport->tt.frame_send(lport, fp); fc_seq_send_locked() 1287 lport->tt.frame_send(lport, fp); fc_seq_send_ack() 1356 lport->tt.frame_send(lport, fp); fc_exch_send_ba_rjt() 1486 return lport->tt.lport_recv(lport, fp); fc_exch_recv_req() 1507 lport->tt.lport_recv(lport, fp); fc_exch_recv_req() 1788 lport->tt.frame_send(lport, fp); fc_seq_ls_acc() 1817 lport->tt.frame_send(lport, fp); fc_seq_ls_rjt() 1996 lport->tt.frame_send(lport, fp); fc_exch_els_rec() 2111 if (unlikely(lport->tt.frame_send(lport, fp))) fc_exch_seq_send() 2554 if (!lport->tt.seq_start_next) fc_exch_init() 2555 lport->tt.seq_start_next = fc_seq_start_next; fc_exch_init() 2557 if (!lport->tt.seq_set_resp) fc_exch_init() 2558 lport->tt.seq_set_resp = fc_seq_set_resp; fc_exch_init() 2560 if (!lport->tt.exch_seq_send) fc_exch_init() 2561 lport->tt.exch_seq_send = fc_exch_seq_send; fc_exch_init() 2563 if (!lport->tt.seq_send) fc_exch_init() 2564 lport->tt.seq_send = fc_seq_send; fc_exch_init() 2566 if (!lport->tt.seq_els_rsp_send) fc_exch_init() 2567 lport->tt.seq_els_rsp_send = fc_seq_els_rsp_send; fc_exch_init() 2569 if (!lport->tt.exch_done) fc_exch_init() 2570 lport->tt.exch_done = fc_exch_done; fc_exch_init() 2572 if (!lport->tt.exch_mgr_reset) fc_exch_init() 2573 lport->tt.exch_mgr_reset = fc_exch_mgr_reset; fc_exch_init() 2575 if (!lport->tt.seq_exch_abort) fc_exch_init() 2576 lport->tt.seq_exch_abort = fc_seq_exch_abort; fc_exch_init() 2578 if (!lport->tt.seq_assign) fc_exch_init() 2579 lport->tt.seq_assign = fc_seq_assign; fc_exch_init() 2581 if (!lport->tt.seq_release) fc_exch_init() 2582 lport->tt.seq_release = fc_seq_release; fc_exch_init()
|
H A D | fc_libfc.c | 229 fr_seq(fp) = fr_dev(in_fp)->tt.seq_start_next(sp); fc_fill_reply_hdr()
|
/linux-4.4.14/arch/um/os-Linux/ |
H A D | util.c | 27 struct termios tt; raw() local 30 CATCH_EINTR(err = tcgetattr(fd, &tt)); raw() 34 cfmakeraw(&tt); raw() 36 CATCH_EINTR(err = tcsetattr(fd, TCSADRAIN, &tt)); raw()
|
H A D | aio.c | 316 " is not available in tt mode, on 2.4 hosts, or when UML is built with\n"
|
/linux-4.4.14/drivers/gpu/drm/ast/ |
H A D | ast_ttm.c | 200 static void ast_ttm_backend_destroy(struct ttm_tt *tt) ast_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); ast_ttm_backend_destroy() 203 kfree(tt); ast_ttm_backend_destroy() 215 struct ttm_tt *tt; ast_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); ast_ttm_tt_create() 218 if (tt == NULL) ast_ttm_tt_create() 220 tt->func = &ast_tt_backend_func; ast_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { ast_ttm_tt_create() 222 kfree(tt); ast_ttm_tt_create() 225 return tt; ast_ttm_tt_create()
|
/linux-4.4.14/drivers/gpu/drm/bochs/ |
H A D | bochs_mm.c | 177 static void bochs_ttm_backend_destroy(struct ttm_tt *tt) bochs_ttm_backend_destroy() argument 179 ttm_tt_fini(tt); bochs_ttm_backend_destroy() 180 kfree(tt); bochs_ttm_backend_destroy() 192 struct ttm_tt *tt; bochs_ttm_tt_create() local 194 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); bochs_ttm_tt_create() 195 if (tt == NULL) bochs_ttm_tt_create() 197 tt->func = &bochs_tt_backend_func; bochs_ttm_tt_create() 198 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { bochs_ttm_tt_create() 199 kfree(tt); bochs_ttm_tt_create() 202 return tt; bochs_ttm_tt_create()
|
/linux-4.4.14/drivers/gpu/drm/cirrus/ |
H A D | cirrus_ttm.c | 200 static void cirrus_ttm_backend_destroy(struct ttm_tt *tt) cirrus_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); cirrus_ttm_backend_destroy() 203 kfree(tt); cirrus_ttm_backend_destroy() 215 struct ttm_tt *tt; cirrus_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); cirrus_ttm_tt_create() 218 if (tt == NULL) cirrus_ttm_tt_create() 220 tt->func = &cirrus_tt_backend_func; cirrus_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { cirrus_ttm_tt_create() 222 kfree(tt); cirrus_ttm_tt_create() 225 return tt; cirrus_ttm_tt_create()
|
/linux-4.4.14/drivers/gpu/drm/mgag200/ |
H A D | mgag200_ttm.c | 200 static void mgag200_ttm_backend_destroy(struct ttm_tt *tt) mgag200_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); mgag200_ttm_backend_destroy() 203 kfree(tt); mgag200_ttm_backend_destroy() 215 struct ttm_tt *tt; mgag200_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); mgag200_ttm_tt_create() 218 if (tt == NULL) mgag200_ttm_tt_create() 220 tt->func = &mgag200_tt_backend_func; mgag200_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { mgag200_ttm_tt_create() 222 kfree(tt); mgag200_ttm_tt_create() 225 return tt; mgag200_ttm_tt_create()
|
/linux-4.4.14/drivers/isdn/pcbit/ |
H A D | layer2.c | 150 unsigned short tt; pcbit_transmit() local 234 tt = ((ushort) (flen - 2)) | 0x8000U; /* Type 1 */ pcbit_transmit() 235 pcbit_writew(dev, tt); pcbit_transmit() 325 unsigned short tt; pcbit_receive() local 335 tt = pcbit_readw(dev); pcbit_receive() 337 if ((tt & 0x7fffU) > 511) { pcbit_receive() 339 tt); pcbit_receive() 343 if (!(tt & 0x8000U)) { /* Type 0 */ pcbit_receive() 422 tt &= 0x7fffU; pcbit_receive() 427 dev->readptr += tt; pcbit_receive() 435 memcpy_frompcbit(dev, skb_put(frame->skb, tt), tt); pcbit_receive() 437 frame->copied += tt; pcbit_receive()
|
/linux-4.4.14/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 95 lport->tt.seq_release(fr_seq(fp)); ft_free_cmd() 165 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_queue_status() 169 rc = lport->tt.seq_send(lport, cmd->seq, fp); ft_queue_status() 181 lport->tt.exch_done(cmd->seq); ft_queue_status() 219 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_write_pending() 234 lport->tt.ddp_target(lport, ep->xid, ft_write_pending() 240 lport->tt.seq_send(lport, cmd->seq, fp); ft_write_pending() 321 lport->tt.seq_send(lport, sp, fp); ft_send_resp_status() 322 lport->tt.exch_done(sp); ft_send_resp_status() 324 lport->tt.frame_send(lport, fp); ft_send_resp_status() 453 cmd->seq = lport->tt.seq_assign(lport, fp); ft_recv_cmd() 555 fc_seq_exch(cmd->seq)->lp->tt.seq_set_resp(cmd->seq, ft_recv_seq, cmd); ft_send_work()
|
H A D | tfc_io.c | 85 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_queue_data_in() 177 error = lport->tt.seq_send(lport, seq, fp); ft_queue_data_in() 361 cmd->write_data_len = lport->tt.ddp_done(lport, ft_invl_hw_context()
|
/linux-4.4.14/arch/sh/kernel/ |
H A D | traps.c | 88 enum bug_trap_type tt; handle_BUG() local 99 tt = report_bug(bugaddr, regs); handle_BUG() 100 if (tt == BUG_TRAP_TYPE_WARN) { handle_BUG()
|
/linux-4.4.14/drivers/block/aoe/ |
H A D | aoecmd.c | 253 struct aoetgt *t, **tt; newframe() local 262 tt = d->tgt; /* last used target */ newframe() 264 tt++; newframe() 265 if (tt >= &d->targets[d->ntargets] || !*tt) newframe() 266 tt = d->targets; newframe() 267 t = *tt; newframe() 278 d->tgt = tt; newframe() 282 if (tt == d->tgt) { /* we've looped and found nada */ newframe() 1488 struct aoetgt **tt; grow_targets() local 1492 tt = kcalloc(newn, sizeof(*d->targets), GFP_ATOMIC); grow_targets() 1493 if (!tt) grow_targets() 1495 memmove(tt, d->targets, sizeof(*d->targets) * oldn); grow_targets() 1496 d->tgt = tt + (d->tgt - d->targets); grow_targets() 1498 d->targets = tt; grow_targets() 1507 struct aoetgt *t, **tt, **te; addtgt() local 1509 tt = d->targets; addtgt() 1510 te = tt + d->ntargets; addtgt() 1511 for (; tt < te && *tt; tt++) addtgt() 1514 if (tt == te) { addtgt() 1515 tt = grow_targets(d); addtgt() 1516 if (!tt) addtgt() 1529 return *tt = t; addtgt()
|
H A D | aoedev.c | 199 struct aoetgt *t, **tt, **te; aoedev_downdev() local 217 tt = d->targets; aoedev_downdev() 218 te = tt + d->ntargets; aoedev_downdev() 219 for (; tt < te && (t = *tt); tt++) { aoedev_downdev()
|
/linux-4.4.14/drivers/usb/host/ |
H A D | ehci-sched.c | 116 struct usb_tt *utt = udev->tt; find_tt() 117 struct ehci_tt *tt, **tt_index, **ptt; find_tt() local 147 tt = *ptt; find_tt() 148 if (!tt) { /* Create the ehci_tt */ find_tt() 152 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); find_tt() 153 if (!tt) { find_tt() 160 list_add_tail(&tt->tt_list, &ehci->tt_list); find_tt() 161 INIT_LIST_HEAD(&tt->ps_list); find_tt() 162 tt->usb_tt = utt; find_tt() 163 tt->tt_port = port; find_tt() 164 *ptt = tt; find_tt() 167 return tt; find_tt() 173 struct usb_tt *utt = udev->tt; drop_tt() 174 struct ehci_tt *tt, **tt_index, **ptt; drop_tt() local 193 tt = *ptt; drop_tt() 194 if (!tt || !list_empty(&tt->ps_list)) drop_tt() 197 list_del(&tt->tt_list); drop_tt() 199 kfree(tt); drop_tt() 226 struct ehci_tt *tt; reserve_release_intr_bandwidth() local 259 tt = find_tt(qh->ps.udev); reserve_release_intr_bandwidth() 261 list_add_tail(&qh->ps.ps_list, &tt->ps_list); reserve_release_intr_bandwidth() 267 tt->bandwidth[i] += tt_usecs; reserve_release_intr_bandwidth() 274 struct ehci_tt *tt) compute_tt_budget() 280 if (!tt) compute_tt_budget() 285 list_for_each_entry(ps, &tt->ps_list, ps_list) { compute_tt_budget() 311 if (!dev1->tt || !dev2->tt) same_tt() 313 if (dev1->tt != dev2->tt) same_tt() 315 if (dev1->tt->multi) same_tt() 358 * Return true if the device's tt's downstream bus is available for a 381 struct ehci_tt *tt, tt_available() 397 if (tt->bandwidth[frame] + usecs > 900) tt_available() 798 struct ehci_tt *tt check_intr_schedule() 816 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { check_intr_schedule() 832 /* Make sure this tt's buffer is also available for CSPLITs. check_intr_schedule() 866 struct ehci_tt *tt; qh_schedule() local 878 tt = find_tt(qh->ps.udev); qh_schedule() 879 if (IS_ERR(tt)) { qh_schedule() 880 status = PTR_ERR(tt); qh_schedule() 883 compute_tt_budget(ehci->tt_budget, tt); qh_schedule() 897 frame, uframe, qh, &c_mask, tt); qh_schedule() 905 status = check_intr_schedule(ehci, 0, 0, qh, &c_mask, tt); qh_schedule() 1105 || (dev->tt->hub != iso_stream_init() 1107 addr |= dev->tt->hub->devnum << 16; iso_stream_init() 1111 think_time = dev->tt ? dev->tt->think_time : 0; iso_stream_init() 1340 struct ehci_tt *tt; reserve_release_iso_bandwidth() local 1375 tt = find_tt(stream->ps.udev); reserve_release_iso_bandwidth() 1377 list_add_tail(&stream->ps.ps_list, &tt->ps_list); reserve_release_iso_bandwidth() 1383 tt->bandwidth[i] += tt_usecs; reserve_release_iso_bandwidth() 1413 struct ehci_tt *tt sitd_slot_ok() 1434 /* The tt's fullspeed bus bandwidth must be available. sitd_slot_ok() 1438 if (!tt_available(ehci, &stream->ps, tt, frame, uf)) sitd_slot_ok() 1441 /* tt must be idle for start(s), any gap, and csplit. sitd_slot_ok() 1521 struct ehci_tt *tt = find_tt(stream->ps.udev); iso_stream_schedule() local 1523 if (IS_ERR(tt)) { iso_stream_schedule() 1524 status = PTR_ERR(tt); iso_stream_schedule() 1527 compute_tt_budget(ehci->tt_budget, tt); iso_stream_schedule() 1548 sched, tt)) iso_stream_schedule() 273 compute_tt_budget(u8 budget_table[EHCI_BANDWIDTH_SIZE], struct ehci_tt *tt) compute_tt_budget() argument 378 tt_available( struct ehci_hcd *ehci, struct ehci_per_sched *ps, struct ehci_tt *tt, unsigned frame, unsigned uframe ) tt_available() argument
|
H A D | ehci-q.c | 170 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { ehci_clear_tt_buffer() 172 struct usb_device *tt = urb->dev->tt->hub; ehci_clear_tt_buffer() local 173 dev_dbg(&tt->dev, ehci_clear_tt_buffer() 174 "clear tt buffer port %d, a%d ep%d t%08x\n", ehci_clear_tt_buffer() 179 || urb->dev->tt->hub != ehci_clear_tt_buffer() 767 struct usb_tt *tt = urb->dev->tt; qh_make() local 845 think_time = tt ? tt->think_time : 0; qh_make() 864 /* support for tt scheduling, and access to toggles */ qh_make() 895 * root hub tt, leave it zeroed. qh_make() 897 if (tt && tt->hub != ehci_to_hcd(ehci)->self.root_hub) qh_make() 898 info2 |= tt->hub->devnum << 16; qh_make()
|
H A D | ehci-dbg.c | 539 struct ehci_tt *tt; fill_bandwidth_buffer() local 572 list_for_each_entry(tt, &ehci->tt_list, tt_list) { fill_bandwidth_buffer() 575 dev_name(&tt->usb_tt->hub->dev), fill_bandwidth_buffer() 576 tt->tt_port + !!tt->usb_tt->multi); fill_bandwidth_buffer() 580 bf = tt->bandwidth; fill_bandwidth_buffer() 592 compute_tt_budget(budget, tt); fill_bandwidth_buffer() 602 list_for_each_entry(ps, &tt->ps_list, ps_list) { fill_bandwidth_buffer()
|
H A D | xhci-mem.c | 873 struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() 879 if (!tt->multi) xhci_alloc_tt_info() 894 if (tt->multi) xhci_alloc_tt_info() 1155 if (!udev->tt || !udev->tt->hub->parent) { xhci_setup_addressable_virt_dev() 1164 if (tt_bw->slot_id != udev->tt->hub->slot_id) xhci_setup_addressable_virt_dev() 1167 if (!dev->udev->tt->multi || xhci_setup_addressable_virt_dev() 1168 (udev->tt->multi && xhci_setup_addressable_virt_dev() 1180 if (udev->tt && udev->tt->hub->parent) { xhci_setup_addressable_virt_dev() 1181 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | xhci_setup_addressable_virt_dev() 1183 if (udev->tt->multi) xhci_setup_addressable_virt_dev() 1186 xhci_dbg(xhci, "udev->tt = %p\n", udev->tt); xhci_setup_addressable_virt_dev() 1860 struct xhci_tt_bw_info *tt, *n; xhci_mem_cleanup() local 1861 list_for_each_entry_safe(tt, n, &xhci->rh_bw[i].tts, tt_list) { xhci_mem_cleanup() 1862 list_del(&tt->tt_list); xhci_mem_cleanup() 1863 kfree(tt); xhci_mem_cleanup() 870 xhci_alloc_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() argument
|
H A D | fotg210-hcd.c | 2143 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { fotg210_clear_tt_buffer() 2144 struct usb_device *tt = urb->dev->tt->hub; fotg210_clear_tt_buffer() local 2146 dev_dbg(&tt->dev, fotg210_clear_tt_buffer() 2147 "clear tt buffer port %d, a%d ep%d t%08x\n", fotg210_clear_tt_buffer() 2151 if (urb->dev->tt->hub != fotg210_clear_tt_buffer() 2748 struct usb_tt *tt = urb->dev->tt; qh_make() local 2818 think_time = tt ? tt->think_time : 0; qh_make() 2830 /* support for tt scheduling, and access to toggles */ qh_make() 2860 * root hub tt, leave it zeroed. qh_make() 2862 if (tt && tt->hub != fotg210_to_hcd(fotg210)->self.root_hub) qh_make() 2863 info2 |= tt->hub->devnum << 16; qh_make() 3414 if (!dev1->tt || !dev2->tt) same_tt() 3416 if (dev1->tt != dev2->tt) same_tt() 3418 if (dev1->tt->multi) same_tt() 3758 /* Make sure this tt's buffer is also available for CSPLITs. check_intr_schedule()
|
H A D | fotg210.h | 460 u16 tt_usecs; /* tt downstream bandwidth */ 527 /* this is used to initialize sITD's tt info */
|
H A D | oxu210hp.h | 318 u16 tt_usecs; /* tt downstream bandwidth */
|
H A D | oxu210hp-hcd.c | 1410 struct usb_tt *tt = urb->dev->tt; qh_make() local 1426 think_time = tt ? tt->think_time : 0; qh_make() 1434 /* support for tt scheduling, and access to toggles */ qh_make()
|
H A D | ehci.h | 497 /* this is used to initialize sITD's tt info */
|
H A D | xhci.h | 1846 struct usb_tt *tt, gfp_t mem_flags); 1859 struct usb_tt *tt, gfp_t mem_flags);
|
H A D | ehci-hcd.c | 113 struct ehci_tt *tt);
|
H A D | xhci.c | 4739 struct usb_tt *tt, gfp_t mem_flags) xhci_update_hub_device() 4774 xhci_alloc_tt_info(xhci, vdev, hdev, tt, GFP_ATOMIC)) { xhci_update_hub_device() 4790 if (tt->multi) xhci_update_hub_device() 4807 think_time = tt->think_time; xhci_update_hub_device() 4738 xhci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_update_hub_device() argument
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | etrap_64.S | 57 rdpr %tt, %g1 186 rdpr %tt, %g3 196 rdpr %tt, %g3 211 rdpr %tt, %g3 221 rdpr %tt, %g3
|
H A D | spiterrs.S | 26 rdpr %tt, %g3 165 rdpr %tt, %g3
|
H A D | traps_64.c | 62 unsigned long tt; member in struct:tl1_traplog::__anon2752 81 p->trapstack[i].tnpc, p->trapstack[i].tt); dump_tl1_traplog() 498 static void spitfire_ue_log(unsigned long afsr, unsigned long afar, unsigned long udbh, unsigned long udbl, unsigned long tt, int tl1, struct pt_regs *regs) spitfire_ue_log() argument 504 smp_processor_id(), afsr, afar, udbl, udbh, tt, tl1); spitfire_ue_log() 516 0, tt, SIGTRAP); spitfire_ue_log() 546 unsigned long afsr, tt, udbh, udbl; spitfire_access_error() local 550 tt = (status_encoded & SFSTAT_TRAP_TYPE) >> SFSTAT_TRAP_TYPE_SHIFT; spitfire_access_error() 556 if (tt == TRAP_TYPE_DAE && spitfire_access_error() 568 spitfire_ue_log(afsr, afar, udbh, udbl, tt, tl1, regs); spitfire_access_error() 570 if (tt == TRAP_TYPE_CEE) { spitfire_access_error()
|
H A D | cherrs.S | 449 rdpr %tt, %g2
|
/linux-4.4.14/include/linux/ |
H A D | trace_events.h | 433 enum event_trigger_type tt); 480 enum event_trigger_type *tt) __event_trigger_test_discard() 485 *tt = event_triggers_call(file, entry); __event_trigger_test_discard() 514 enum event_trigger_type tt = ETT_NONE; event_trigger_unlock_commit() local 516 if (!__event_trigger_test_discard(file, buffer, event, entry, &tt)) event_trigger_unlock_commit() 519 if (tt) event_trigger_unlock_commit() 520 event_triggers_post_call(file, tt); event_trigger_unlock_commit() 546 enum event_trigger_type tt = ETT_NONE; event_trigger_unlock_commit_regs() local 548 if (!__event_trigger_test_discard(file, buffer, event, entry, &tt)) event_trigger_unlock_commit_regs() 552 if (tt) event_trigger_unlock_commit_regs() 553 event_triggers_post_call(file, tt); event_trigger_unlock_commit_regs() 476 __event_trigger_test_discard(struct trace_event_file *file, struct ring_buffer *buffer, struct ring_buffer_event *event, void *entry, enum event_trigger_type *tt) __event_trigger_test_discard() argument
|
H A D | lightnvm.h | 119 struct nvm_tgt_type *tt; member in struct:nvm_tgt_instance
|
H A D | usb.h | 481 * @tt: Transaction Translator info; used with low/full speed dev, highspeed hub 482 * @ttport: device port on that tt hub 552 struct usb_tt *tt; member in struct:usb_device
|
/linux-4.4.14/drivers/media/rc/keymaps/ |
H A D | rc-tt-1500.c | 0 /* tt-1500.h - Keytable for tt_1500 Remote Controller
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
H A D | mISDNisar.c | 1095 int tt; mISDNisar_irq() local 1096 tt = isar->cmsb | 0x30; mISDNisar_irq() 1097 if (tt == 0x3e) mISDNisar_irq() 1098 tt = '*'; mISDNisar_irq() 1099 else if (tt == 0x3f) mISDNisar_irq() 1100 tt = '#'; mISDNisar_irq() 1101 else if (tt > '9') mISDNisar_irq() 1102 tt += 7; mISDNisar_irq() 1103 tt |= DTMF_TONE_VAL; mISDNisar_irq() 1105 MISDN_ID_ANY, sizeof(tt), &tt, mISDNisar_irq() 1524 char tt = *val & DTMF_TONE_MASK; isar_l2l1() local 1526 if (tt == '*') isar_l2l1() 1527 tt = 0x1e; isar_l2l1() 1528 else if (tt == '#') isar_l2l1() 1529 tt = 0x1f; isar_l2l1() 1530 else if (tt > '9') isar_l2l1() 1531 tt -= 7; isar_l2l1() 1532 tt &= 0x1f; isar_l2l1() 1534 isar_pump_cmd(ich, PCTRL_CMD_TDTMF, tt); isar_l2l1()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | kgdb.c | 38 unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */ member in struct:hard_trap_info 229 static int compute_signal(int tt) compute_signal() argument 233 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) compute_signal() 234 if (ht->tt == tt) compute_signal()
|
/linux-4.4.14/arch/s390/kvm/ |
H A D | gaccess.c | 48 unsigned long tt : 2; /* Table-Type Bits */ member in struct:region1_table_entry::__anon2539 63 unsigned long tt : 2; /* Table-Type Bits */ member in struct:region2_table_entry::__anon2540 77 unsigned long tt : 2; /* Table-Type Bits */ member in struct:region3_table_entry_fc0 93 unsigned long tt : 2; /* Table-Type Bits */ member in struct:region3_table_entry_fc1 107 unsigned long tt : 2; /* Table-Type Bits */ member in struct:region3_table_entry::__anon2541 119 unsigned long tt : 2; /* Table-Type Bits */ member in struct:segment_entry_fc0 135 unsigned long tt : 2; /* Table-Type Bits */ member in struct:segment_entry_fc1 149 unsigned long tt : 2; /* Table-Type Bits */ member in struct:segment_table_entry::__anon2542 595 if (rfte.tt != TABLE_TYPE_REGION1) guest_translate() 613 if (rste.tt != TABLE_TYPE_REGION2) guest_translate() 631 if (rtte.tt != TABLE_TYPE_REGION3) guest_translate() 658 if (ste.tt != TABLE_TYPE_SEGMENT) guest_translate()
|
/linux-4.4.14/arch/sparc/include/uapi/asm/ |
H A D | ptrace.h | 13 * as that is where we encode the %tt value, see below. 29 * with the %tt (trap type) register value at trap 32 * unwinder, and the %tt value allows us to test
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | kgdb.c | 36 unsigned int tt; /* Trap type code for powerpc */ member in struct:hard_trap_info 93 static int computeSignal(unsigned int tt) computeSignal() argument 97 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) computeSignal() 98 if (ht->tt == tt) computeSignal()
|
/linux-4.4.14/arch/x86/crypto/ |
H A D | camellia_glue.c | 818 u64 kw4, tt; camellia_setup_tail() local 933 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 935 SET_SUBKEY_LR(7, subRL[6] ^ tt); /* round 6 */ camellia_setup_tail() 942 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 944 SET_SUBKEY_LR(10, subRL[11] ^ tt); /* round 7 */ camellia_setup_tail() 953 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 955 SET_SUBKEY_LR(15, subRL[14] ^ tt); /* round 12 */ camellia_setup_tail() 962 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 964 SET_SUBKEY_LR(18, subRL[19] ^ tt); /* round 13 */ camellia_setup_tail() 977 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 979 SET_SUBKEY_LR(23, subRL[22] ^ tt); /* round 18 */ camellia_setup_tail() 986 tt = (tr | ((u64)tl << 32)); camellia_setup_tail() 988 SET_SUBKEY_LR(26, subRL[27] ^ tt); /* round 19 */ camellia_setup_tail()
|
/linux-4.4.14/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 2114 lport->tt.rport_logoff(rdata); fcoe_ctlr_vn_rport_callback() 2139 lport->tt.rport_logoff(rdata); fcoe_ctlr_disc_stop_locked() 2170 lport->tt.rport_flush_queue(); fcoe_ctlr_disc_stop_final() 2459 rdata = lport->tt.rport_create(lport, port_id); fcoe_ctlr_vn_add() 2471 lport->tt.rport_logoff(rdata); fcoe_ctlr_vn_add() 2499 rdata = lport->tt.rport_lookup(lport, port_id); fcoe_ctlr_vn_lookup() 2588 rdata = lport->tt.rport_lookup(lport, new->ids.port_id); fcoe_ctlr_vn_beacon() 2597 lport->tt.rport_login(rdata); fcoe_ctlr_vn_beacon() 2600 kref_put(&rdata->kref, lport->tt.rport_destroy); fcoe_ctlr_vn_beacon() 2647 lport->tt.rport_logoff(rdata); fcoe_ctlr_vn_age() 2724 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); fcoe_ctlr_disc_recv() 2777 lport->tt.rport_login(rdata); fcoe_ctlr_vn_disc() 2881 lport->tt.disc_recv_req = fcoe_ctlr_disc_recv; fcoe_ctlr_mode_set() 2882 lport->tt.disc_start = fcoe_ctlr_disc_start; fcoe_ctlr_mode_set() 2883 lport->tt.disc_stop = fcoe_ctlr_disc_stop; fcoe_ctlr_mode_set() 2884 lport->tt.disc_stop_final = fcoe_ctlr_disc_stop_final; fcoe_ctlr_mode_set() 2889 lport->tt.disc_recv_req = NULL; fcoe_ctlr_mode_set() 2890 lport->tt.disc_start = NULL; fcoe_ctlr_mode_set() 2891 lport->tt.disc_stop = NULL; fcoe_ctlr_mode_set() 2892 lport->tt.disc_stop_final = NULL; fcoe_ctlr_mode_set() 2903 * @tt: The libfc function template 2909 const struct libfc_function_template *tt, int init_fcp) fcoe_libfc_config() 2912 memcpy(&lport->tt, tt, sizeof(*tt)); fcoe_libfc_config() 2908 fcoe_libfc_config(struct fc_lport *lport, struct fcoe_ctlr *fip, const struct libfc_function_template *tt, int init_fcp) fcoe_libfc_config() argument
|
H A D | fcoe.c | 2928 lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, FC_NS_RSPN_ID, fcoe_set_vport_symbolic_name()
|
/linux-4.4.14/drivers/scsi/ |
H A D | libiscsi_tcp.c | 246 if (!(tcp_conn->iscsi_conn->session->tt->caps & CAP_PADDING_OFFLOAD)) { iscsi_tcp_segment_done() 437 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) iscsi_tcp_data_recv_prep() 701 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) iscsi_tcp_hdr_dissect() 832 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) { iscsi_tcp_hdr_recv_done() 971 return conn->session->tt->init_pdu(task, 0, task->data_count); iscsi_tcp_task_init() 981 err = conn->session->tt->init_pdu(task, 0, task->imm_count); iscsi_tcp_task_init() 1042 rc = session->tt->xmit_pdu(task); iscsi_tcp_task_xmit() 1064 rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_DATA_OUT); iscsi_tcp_task_xmit() 1073 rc = conn->session->tt->init_pdu(task, r2t->data_offset + r2t->sent, iscsi_tcp_task_xmit()
|
H A D | libiscsi.c | 349 if (conn->session->tt->alloc_pdu) { iscsi_prep_scsi_cmd_pdu() 350 rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_CMD); iscsi_prep_scsi_cmd_pdu() 358 if (session->tt->parse_pdu_itt) iscsi_prep_scsi_cmd_pdu() 457 if (session->tt->init_task && session->tt->init_task(task)) iscsi_prep_scsi_cmd_pdu() 494 session->tt->cleanup_task(task); iscsi_free_task() 681 if (session->tt->init_task && session->tt->init_task(task)) iscsi_prep_mgmt_task() 759 if (conn->session->tt->alloc_pdu) { __iscsi_conn_send_pdu() 760 if (conn->session->tt->alloc_pdu(task, hdr->opcode)) { __iscsi_conn_send_pdu() 772 if (session->tt->parse_pdu_itt) __iscsi_conn_send_pdu() 783 if (session->tt->xmit_task(task)) __iscsi_conn_send_pdu() 848 BUG_ON(!session->tt->check_protection); iscsi_scsi_cmd_rsp() 850 ascq = session->tt->check_protection(task, §or); iscsi_scsi_cmd_rsp() 1132 if (session->tt->parse_pdu_itt) iscsi_itt_to_task() 1133 session->tt->parse_pdu_itt(conn, itt, &i, NULL); iscsi_itt_to_task() 1315 if (session->tt->parse_pdu_itt) iscsi_verify_itt() 1316 session->tt->parse_pdu_itt(conn, itt, &i, &age); iscsi_verify_itt() 1447 rc = conn->session->tt->xmit_task(task); iscsi_xmit_task() 1735 if (session->tt->xmit_task(task)) { iscsi_queuecommand() 2787 session->tt = iscsit; iscsi_session_setup()
|
H A D | aha1740.h | 116 tt:2, /* Tag Type */ member in struct:ecb
|
H A D | scsi_transport_iscsi.c | 2327 iscsi_if_transport_lookup(struct iscsi_transport *tt) iscsi_if_transport_lookup() argument 2334 if (tt == priv->iscsi_transport) { iscsi_if_transport_lookup() 4422 iscsi_register_transport(struct iscsi_transport *tt) iscsi_register_transport() argument 4428 BUG_ON(!tt); iscsi_register_transport() 4430 priv = iscsi_if_transport_lookup(tt); iscsi_register_transport() 4438 priv->iscsi_transport = tt; iscsi_register_transport() 4443 dev_set_name(&priv->dev, "%s", tt->name); iscsi_register_transport() 4475 printk(KERN_NOTICE "iscsi: registered transport (%s)\n", tt->name); iscsi_register_transport() 4487 int iscsi_unregister_transport(struct iscsi_transport *tt) iscsi_unregister_transport() argument 4492 BUG_ON(!tt); iscsi_unregister_transport() 4496 priv = iscsi_if_transport_lookup(tt); iscsi_unregister_transport()
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | atafb.c | 129 } tt, st; member in union:atafb_par::__anon11092 451 { /* tt low */ 455 { /* tt mid */ 459 { /* tt high */ 516 "tt-low", 60, 320, 480, 31041, 120, 100, 8, 16, 140, 30, 520 "tt-mid", 60, 640, 480, 31041, 120, 100, 8, 16, 140, 30, 524 "tt-high", 57, 640, 960, 31041, 120, 100, 8, 16, 140, 30, 559 #define DEFMODE_TT 5 /* "tt-high" for TT */ 601 mode = par->hw.tt.mode & TT_SHIFTER_MODEMASK; tt_encode_fix() 627 par->hw.tt.mode = TT_SHIFTER_TTHIGH; tt_decode_var() 637 par->hw.tt.mode = TT_SHIFTER_TTLOW; tt_decode_var() 645 par->hw.tt.mode = TT_SHIFTER_TTMID; tt_decode_var() 650 par->hw.tt.mode = TT_SHIFTER_STLOW; tt_decode_var() 658 par->hw.tt.mode = TT_SHIFTER_STMID; tt_decode_var() 665 par->hw.tt.mode = TT_SHIFTER_STHIGH; tt_decode_var() 676 par->hw.tt.sync = 0; tt_decode_var() 678 par->hw.tt.sync = 1; tt_decode_var() 712 if (par->hw.tt.sync & 1) tt_encode_var() 717 switch (par->hw.tt.mode & TT_SHIFTER_MODEMASK) { tt_encode_var() 789 par->hw.tt.mode = shifter_tt.tt_shiftmode; tt_get_par() 790 par->hw.tt.sync = shifter.syncmode; tt_get_par() 799 shifter_tt.tt_shiftmode = par->hw.tt.mode; tt_set_par() 800 shifter.syncmode = par->hw.tt.sync; tt_set_par()
|
/linux-4.4.14/drivers/usb/core/ |
H A D | hub.c | 685 hub_clear_tt_buffer(struct usb_device *hdev, u16 devinfo, u16 tt) hub_clear_tt_buffer() argument 692 devinfo ^ 0x8000, tt, NULL, 0, 1000); hub_clear_tt_buffer() 698 tt, NULL, 0, 1000); hub_clear_tt_buffer() 710 container_of(work, struct usb_hub, tt.clear_work); hub_tt_work() 713 spin_lock_irqsave(&hub->tt.lock, flags); hub_tt_work() 714 while (!list_empty(&hub->tt.clear_list)) { hub_tt_work() 721 next = hub->tt.clear_list.next; hub_tt_work() 726 spin_unlock_irqrestore(&hub->tt.lock, flags); hub_tt_work() 727 status = hub_clear_tt_buffer(hdev, clear->devinfo, clear->tt); hub_tt_work() 730 "clear tt %d (%04x) error %d\n", hub_tt_work() 731 clear->tt, clear->devinfo, status); hub_tt_work() 739 spin_lock_irqsave(&hub->tt.lock, flags); hub_tt_work() 741 spin_unlock_irqrestore(&hub->tt.lock, flags); hub_tt_work() 794 struct usb_tt *tt = udev->tt; usb_hub_clear_tt_buffer() local 810 clear->tt = tt->multi ? udev->ttport : 1; usb_hub_clear_tt_buffer() 824 spin_lock_irqsave(&tt->lock, flags); usb_hub_clear_tt_buffer() 825 list_add_tail(&clear->clear_list, &tt->clear_list); usb_hub_clear_tt_buffer() 826 schedule_work(&tt->clear_work); usb_hub_clear_tt_buffer() 827 spin_unlock_irqrestore(&tt->lock, flags); usb_hub_clear_tt_buffer() 1107 &hub->tt, GFP_NOIO); hub_activate() 1319 if (hub->tt.hub) hub_quiesce() 1320 flush_work(&hub->tt.clear_work); hub_quiesce() 1464 spin_lock_init(&hub->tt.lock); hub_configure() 1465 INIT_LIST_HEAD(&hub->tt.clear_list); hub_configure() 1466 INIT_WORK(&hub->tt.clear_work, hub_tt_work); hub_configure() 1472 hub->tt.hub = hdev; hub_configure() 1478 hub->tt.multi = 1; hub_configure() 1482 hub->tt.hub = hdev; hub_configure() 1497 hub->tt.think_time = 666; hub_configure() 1500 8, hub->tt.think_time); hub_configure() 1504 hub->tt.think_time = 666 * 2; hub_configure() 1507 16, hub->tt.think_time); hub_configure() 1510 hub->tt.think_time = 666 * 3; hub_configure() 1513 24, hub->tt.think_time); hub_configure() 1516 hub->tt.think_time = 666 * 4; hub_configure() 1519 32, hub->tt.think_time); hub_configure() 1641 &hub->tt, GFP_KERNEL); hub_configure() 4356 if (hdev->tt) { hub_port_init() 4357 udev->tt = hdev->tt; hub_port_init() 4361 if (!hub->tt.hub) { hub_port_init() 4366 udev->tt = &hub->tt; hub_port_init()
|
H A D | hub.h | 61 struct usb_tt tt; /* Transaction Translator */ member in struct:usb_hub
|
H A D | hcd.c | 257 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */ 304 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */
|
/linux-4.4.14/kernel/trace/ |
H A D | trace_events_trigger.c | 69 enum event_trigger_type tt = ETT_NONE; event_triggers_call() local 73 return tt; event_triggers_call() 84 tt |= data->cmd_ops->trigger_type; event_triggers_call() 89 return tt; event_triggers_call() 96 * @tt: enum event_trigger_type containing a set bit for each trigger to invoke 100 * corresponding bit is set in the tt enum passed into this function. 107 enum event_trigger_type tt) event_triggers_post_call() 112 if (data->cmd_ops->trigger_type & tt) event_triggers_post_call() 106 event_triggers_post_call(struct trace_event_file *file, enum event_trigger_type tt) event_triggers_post_call() argument
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_main.c | 1309 static int mlx5e_modify_tir_lro(struct mlx5e_priv *priv, int tt) mlx5e_modify_tir_lro() argument 1328 err = mlx5_core_modify_tir(mdev, priv->tirn[tt], in, inlen); mlx5e_modify_tir_lro() 1631 static void mlx5e_build_tir_ctx(struct mlx5e_priv *priv, u32 *tirc, int tt) mlx5e_build_tir_ctx() argument 1653 switch (tt) { mlx5e_build_tir_ctx() 1676 switch (tt) { mlx5e_build_tir_ctx() 1757 static int mlx5e_create_tir(struct mlx5e_priv *priv, int tt) mlx5e_create_tir() argument 1772 mlx5e_build_tir_ctx(priv, tirc, tt); mlx5e_create_tir() 1774 err = mlx5_core_create_tir(mdev, in, inlen, &priv->tirn[tt]); mlx5e_create_tir() 1781 static void mlx5e_destroy_tir(struct mlx5e_priv *priv, int tt) mlx5e_destroy_tir() argument 1783 mlx5_core_destroy_tir(priv->mdev, priv->tirn[tt]); mlx5e_destroy_tir()
|
/linux-4.4.14/Documentation/cdrom/ |
H A D | cdrom-standard.tex | 13 \def\cdromc{{\tt {cdrom.c}}} 14 \def\cdromh{{\tt {cdrom.h}}} 25 \author{David van Leeuwen\\{\normalsize\tt david@ElseWare.cistron.nl} 26 \\{\footnotesize updated by Erik Andersen {\tt(andersee@debian.org)}} 27 \\{\footnotesize updated by Jens Axboe {\tt(axboe@image.dk)}}} 350 \item[0] Open for reading data, as done by {\tt {mount()}} (2), or the 351 user commands {\tt {dd}} or {\tt {cat}}. 505 $cm206_audio_ioctl()$ in {\tt {cm206.c}} that should be updated with 540 the general \cdrom\ $ioctl$ number, {\tt {0x53}}. Currently the 622 A software package {\tt setcd}, available from the Debian distribution 623 and {\tt sunsite.unc.edu}, allows user level control of these flags. 661 parameter (see {\tt {open(2)}}). For \cdrom\ devices, these flags aren't 696 volume-daemon automatically mounts a newly inserted \cdrom\ under {\tt 748 file were placed in the file {\tt {ucdrom.h}}, but this file has now been 966 source, \eg, from {\tt {cm206.c}} $cm206_dops$, and change all 1001 for {\tt {cdrom.o}} and your driver, as debugging is much easier this
|
/linux-4.4.14/arch/parisc/kernel/ |
H A D | traps.c | 316 enum bug_trap_type tt; handle_break() local 317 tt = report_bug(regs->iaoq[0] & ~3, regs); handle_break() 318 if (tt == BUG_TRAP_TYPE_WARN) { handle_break() 324 (tt == BUG_TRAP_TYPE_NONE) ? 9 : 0); handle_break()
|
/linux-4.4.14/drivers/isdn/mISDN/ |
H A D | dsp_cmx.c | 1316 int r, rr, t, tt, o_r, o_rr; local 1372 tt = dsp->tx_W; 1391 if (!dsp->tx_mix && t != tt) { 1394 sprintf(debugbuf, "TX sending (%04x-%04x)%p: ", t, tt, p); 1396 while (r != rr && t != tt) { 1423 while (r != rr && t != tt) { 1440 while (r != rr && t != tt) { 1476 while (o_r != o_rr && t != tt) { 1491 while (r != rr && t != tt) { 1521 while (r != rr && t != tt) { 1549 while (r != rr && t != tt) {
|
/linux-4.4.14/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 585 int tt = 0; c67x00_create_td() local 604 tt = TT_ISOCHRONOUS; c67x00_create_td() 608 tt = TT_CONTROL; c67x00_create_td() 611 tt = TT_BULK; c67x00_create_td() 614 tt = TT_INTERRUPT; c67x00_create_td() 636 td->retry_cnt = (tt << TT_OFFSET) | (active_flag << 4) | retry_cnt; c67x00_create_td()
|
/linux-4.4.14/arch/mips/include/asm/octeon/ |
H A D | cvmx-sriox-defs.h | 367 uint64_t tt:2; member in struct:cvmx_sriox_imsg_inst_hdrx::cvmx_sriox_imsg_inst_hdrx_s 371 uint64_t tt:2; 770 uint64_t tt:1; member in struct:cvmx_sriox_int_info2::cvmx_sriox_int_info2_s 790 uint64_t tt:1; 804 uint64_t tt:2; member in struct:cvmx_sriox_int_info3::cvmx_sriox_int_info3_s 812 uint64_t tt:2;
|
H A D | cvmx-pip-defs.h | 339 uint64_t tt:2; member in struct:cvmx_pip_bsel_tbl_entx::cvmx_pip_bsel_tbl_entx_s 345 uint64_t tt:2; 368 uint64_t tt:2; member in struct:cvmx_pip_bsel_tbl_entx::cvmx_pip_bsel_tbl_entx_cn61xx 374 uint64_t tt:2;
|
/linux-4.4.14/include/scsi/ |
H A D | scsi_transport_iscsi.h | 176 extern struct scsi_transport_template *iscsi_register_transport(struct iscsi_transport *tt); 177 extern int iscsi_unregister_transport(struct iscsi_transport *tt);
|
H A D | libiscsi.h | 331 struct iscsi_transport *tt; member in struct:iscsi_session
|
H A D | libfc.h | 829 * @tt: Libfc function template 878 struct libfc_function_template tt; member in struct:fc_lport
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
H A D | wlan_bssdef.h | 212 } tt; member in struct:ndis_802_11_test
|
/linux-4.4.14/drivers/leds/ |
H A D | leds-tca6507.c | 233 int tt = t + time_codes[c2]; choose_times() local 235 if (tt < tmin) choose_times() 237 if (tt > tmax) choose_times() 240 d = abs(msec - tt); choose_times()
|
/linux-4.4.14/arch/um/kernel/ |
H A D | trap.c | 237 * XXX tt mode is gone, so maybe this isn't needed any more segv()
|
/linux-4.4.14/include/media/ |
H A D | rc-map.h | 207 #define RC_MAP_TT_1500 "rc-tt-1500"
|
/linux-4.4.14/arch/s390/include/uapi/asm/ |
H A D | vtoc.h | 17 __u16 tt; member in struct:vtoc_ttr
|
/linux-4.4.14/fs/jfs/ |
H A D | jfs_dmap.c | 1631 } *totrim, *tt; dbDiscardAG() local 1651 tt = totrim; dbDiscardAG() 1658 tt->blkno = blkno; dbDiscardAG() 1659 tt->nblocks = nblocks; dbDiscardAG() 1660 tt++; count++; dbDiscardAG() 1685 tt->nblocks = 0; /* mark the current end */ dbDiscardAG() 1686 for (tt = totrim; tt->nblocks != 0; tt++) { dbDiscardAG() 1690 jfs_issue_discard(ip, tt->blkno, tt->nblocks); dbDiscardAG() 1691 dbFree(ip, tt->blkno, tt->nblocks); dbDiscardAG() 1692 trimmed += tt->nblocks; dbDiscardAG()
|
/linux-4.4.14/drivers/usb/usbip/ |
H A D | usbip_common.c | 106 pr_debug("tt %p, ttport %d\n", udev->tt, udev->ttport); usbip_dump_usb_device()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
H A D | devconnect.c | 417 unsigned tt = msecs_to_jiffies(wusbhc->trust_timeout); __wusbhc_keep_alive() local 427 if (time_after(jiffies, wusb_dev->entry_ts + tt)) { __wusbhc_keep_alive() 431 } else if (time_after(jiffies, wusb_dev->entry_ts + tt/3)) { __wusbhc_keep_alive()
|
/linux-4.4.14/drivers/usb/musb/ |
H A D | musb_host.c | 2321 /* precompute addressing for external hub/tt ports */ musb_urb_enqueue() 2328 /* set up tt info if needed */ musb_urb_enqueue() 2329 if (urb->dev->tt) { musb_urb_enqueue() 2331 if (urb->dev->tt->hub) musb_urb_enqueue() 2333 (u8) urb->dev->tt->hub->devnum; musb_urb_enqueue() 2334 if (urb->dev->tt->multi) musb_urb_enqueue()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
H A D | ttusb2.c | 688 .firmware = "dvb-usb-tt-s2400-01.fw",
|
/linux-4.4.14/include/linux/usb/ |
H A D | hcd.h | 379 struct usb_tt *tt, gfp_t mem_flags); 543 unsigned tt; member in struct:usb_tt_clear
|
/linux-4.4.14/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_tgt.c | 163 lport->tt.rport_logoff(rdata); bnx2fc_offload_session()
|
H A D | bnx2fc_fcoe.c | 940 memcpy(&lport->tt, &bnx2fc_libfc_fcn_templ, bnx2fc_libfc_config() 1781 lport->tt.frame_send = bnx2fc_xmit; bnx2fc_ulp_start()
|
/linux-4.4.14/drivers/isdn/i4l/ |
H A D | isdn_audio.c | 562 printk(KERN_DEBUG "dtmf: tt='%c'\n", what); isdn_audio_eval_dtmf()
|
/linux-4.4.14/arch/m68k/atari/ |
H A D | config.c | 560 * care about a different tt regs setup, they also didn't care in atari_reset()
|
/linux-4.4.14/drivers/input/mouse/ |
H A D | psmouse-base.c | 388 * 0xE6 0xE8 rr 0xE8 ss 0xE8 tt 0xE8 uu where (rr*64)+(ss*16)+(tt*4)+uu
|
/linux-4.4.14/scripts/ |
H A D | kernel-doc | 214 [$type_param, "<tt><b>\$1</b></tt>"]
|
/linux-4.4.14/net/irda/ |
H A D | irlap_frame.c | 827 pr_debug("%s() adjusting transmission_time : ft=%d, bl=%d, lc=%d -> tt=%d\n", irlap_send_data_primary_poll()
|
/linux-4.4.14/drivers/usb/dwc2/ |
H A D | hcd.c | 2159 if (urb->dev->tt) dwc2_host_hub_info() 2160 *hub_addr = urb->dev->tt->hub->devnum; dwc2_host_hub_info()
|
H A D | hcd_intr.c | 102 if (!usb_urb || !usb_urb->dev || !usb_urb->dev->tt) dwc2_hc_handle_tt_clear()
|
/linux-4.4.14/drivers/scsi/fnic/ |
H A D | fnic_scsi.c | 458 rdata = lp->tt.rport_lookup(lp, rport->port_id); fnic_queuecommand_lck() 2506 ret = lp->tt.lport_reset(lp); fnic_reset()
|
/linux-4.4.14/drivers/video/fbdev/sis/ |
H A D | sis_main.c | 6049 unsigned char __iomem *tt = ioremap(0x400, 0x100); sisfb_probe() local 6050 if(tt) { sisfb_probe() 6051 ivideo->modeprechange = readb(tt + 0x49); sisfb_probe() 6052 iounmap(tt); sisfb_probe()
|
/linux-4.4.14/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 576 ptd->dw1 |= TO_DW1_HUB_NUM(qtd->urb->dev->tt->hub->devnum); create_ptd_atl()
|
/linux-4.4.14/arch/tile/include/hv/ |
H A D | hypervisor.h | 841 * via <tt>hv_inquire_asid()</tt>.
|
/linux-4.4.14/drivers/scsi/be2iscsi/ |
H A D | be_main.c | 5882 printk(KERN_INFO "In beiscsi_module_init, tt=%p\n", beiscsi_module_init()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | hypervisor.h | 1218 unsigned short tt; /* Trap type */ member in struct:hv_trap_trace_entry
|
/linux-4.4.14/arch/m68k/kernel/ |
H A D | head.S | 2026 /* Generate the upper 16bit of the tt register
|