/drivers/media/rc/ |
D | ttusbir.c | 58 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_get() local 60 return tt->led_on ? LED_FULL : LED_OFF; in ttusbir_brightness_get() 63 static void ttusbir_set_led(struct ttusbir *tt) in ttusbir_set_led() argument 69 if (tt->led_on != tt->is_led_on && tt->udev && in ttusbir_set_led() 70 atomic_add_unless(&tt->led_complete, 1, 1)) { in ttusbir_set_led() 71 tt->bulk_buffer[4] = tt->is_led_on = tt->led_on; in ttusbir_set_led() 72 ret = usb_submit_urb(tt->bulk_urb, GFP_ATOMIC); in ttusbir_set_led() 74 dev_warn(tt->dev, "failed to submit bulk urb: %d\n", in ttusbir_set_led() 76 atomic_dec(&tt->led_complete); in ttusbir_set_led() 84 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_set() local [all …]
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | tt.c | 84 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_is_low_power_state() local 86 if (tt->state >= IWL_TI_1) in iwl_tt_is_low_power_state() 93 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tt_current_power_mode() local 95 return tt->tt_power_mode; in iwl_tt_current_power_mode() 100 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_ht_enabled() local 105 restriction = tt->restriction + tt->state; in iwl_ht_enabled() 136 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_tx_ant_restriction() local 141 restriction = tt->restriction + tt->state; in iwl_tx_ant_restriction() 147 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; in iwl_rx_ant_restriction() local 152 restriction = tt->restriction + tt->state; in iwl_rx_ant_restriction() [all …]
|
/drivers/md/ |
D | dm-target.c | 23 struct target_type *tt; in __find_target_type() local 25 list_for_each_entry(tt, &_targets, list) in __find_target_type() 26 if (!strcmp(name, tt->name)) in __find_target_type() 27 return tt; in __find_target_type() 34 struct target_type *tt; in get_target_type() local 38 tt = __find_target_type(name); in get_target_type() 39 if (tt && !try_module_get(tt->module)) in get_target_type() 40 tt = NULL; in get_target_type() 43 return tt; in get_target_type() 53 struct target_type *tt = get_target_type(name); in dm_get_target_type() local [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | tt.c | 169 struct iwl_mvm_tt_mgmt *tt; in check_exit_ctkill() local 174 tt = container_of(work, struct iwl_mvm_tt_mgmt, ct_kill_exit.work); in check_exit_ctkill() 175 mvm = container_of(tt, struct iwl_mvm, thermal_throttle); in check_exit_ctkill() 177 duration = tt->params->ct_kill_duration; in check_exit_ctkill() 201 if (temp <= tt->params->ct_kill_exit) { in check_exit_ctkill() 280 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; in iwl_mvm_tt_handler() local 294 temperature <= tt->params->ct_kill_exit) { in iwl_mvm_tt_handler() 300 if (!tt->dynamic_smps && in iwl_mvm_tt_handler() 303 tt->dynamic_smps = true; in iwl_mvm_tt_handler() 308 } else if (tt->dynamic_smps && in iwl_mvm_tt_handler() [all …]
|
/drivers/scsi/libfc/ |
D | fc_rport.c | 125 rdata = lport->tt.rport_lookup(lport, port_id); in fc_rport_create() 150 rdata->lld_event_callback = lport->tt.rport_event_callback; in fc_rport_create() 273 lport->tt.rport_logoff(rdata); in fc_rport_work() 274 kref_put(&rdata->kref, lport->tt.rport_destroy); in fc_rport_work() 300 kref_put(&rdata->kref, lport->tt.rport_destroy); in fc_rport_work() 331 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work() 332 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work() 349 kref_put(&rdata->kref, lport->tt.rport_destroy); in fc_rport_work() 362 kref_put(&rdata->kref, lport->tt.rport_destroy); in fc_rport_work() 705 kref_put(&rdata->kref, rdata->local_port->tt.rport_destroy); in fc_rport_flogi_resp() [all …]
|
D | fc_disc.c | 73 lport->tt.rport_logoff(rdata); in fc_disc_stop_rports() 153 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_disc_recv_rscn_req() 181 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); in fc_disc_recv_rscn_req() 296 lport->tt.rport_login(rdata); in fc_disc_done() 298 lport->tt.rport_logoff(rdata); in fc_disc_done() 375 if (lport->tt.elsct_send(lport, 0, fp, in fc_disc_gpn_ft_req() 449 rdata = lport->tt.rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse() 616 lport->tt.rport_logoff(rdata); in fc_disc_gpn_id_resp() 618 new_rdata = lport->tt.rport_create(lport, in fc_disc_gpn_id_resp() 622 lport->tt.rport_login(new_rdata); in fc_disc_gpn_id_resp() [all …]
|
D | fc_lport.c | 203 lport->tt.rport_logoff(rdata); in fc_lport_rport_callback() 247 lport->tt.rport_logoff(lport->ptp_rdata); in fc_lport_ptp_setup() 248 kref_put(&lport->ptp_rdata->kref, lport->tt.rport_destroy); in fc_lport_ptp_setup() 250 lport->ptp_rdata = lport->tt.rport_create(lport, remote_fid); in fc_lport_ptp_setup() 256 lport->tt.rport_login(lport->ptp_rdata); in fc_lport_ptp_setup() 415 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_rlir_req() 450 lport->tt.frame_send(lport, fp); in fc_lport_recv_echo_req() 484 lport->tt.seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); in fc_lport_recv_rnid_req() 508 lport->tt.frame_send(lport, fp); in fc_lport_recv_rnid_req() 524 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_logo_req() [all …]
|
D | fc_fcp.c | 274 return fsp->lp->tt.seq_exch_abort(fsp->seq_ptr, 0); in fc_fcp_send_abort() 289 fsp->lp->tt.exch_done(fsp->seq_ptr); in fc_fcp_retry_cmd() 310 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 311 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 333 if (lport->tt.ddp_done) { in fc_fcp_ddp_done() 334 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done() 612 seq = lport->tt.seq_start_next(seq); in fc_fcp_send_data() 690 error = lport->tt.seq_send(lport, seq, fp); in fc_fcp_send_data() 973 csp = lport->tt.seq_start_next(seq); in fc_fcp_complete_locked() 982 lport->tt.seq_send(lport, csp, conf_frame); in fc_fcp_complete_locked() [all …]
|
D | fc_exch.c | 502 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 1287 lport->tt.frame_send(lport, fp); in fc_seq_send_ack() 1356 lport->tt.frame_send(lport, fp); in fc_exch_send_ba_rjt() 1486 return lport->tt.lport_recv(lport, fp); in fc_exch_recv_req() 1507 lport->tt.lport_recv(lport, fp); in fc_exch_recv_req() 1788 lport->tt.frame_send(lport, fp); in fc_seq_ls_acc() 1817 lport->tt.frame_send(lport, fp); in fc_seq_ls_rjt() 1996 lport->tt.frame_send(lport, fp); in fc_exch_els_rec() 2111 if (unlikely(lport->tt.frame_send(lport, fp))) in fc_exch_seq_send() 2554 if (!lport->tt.seq_start_next) in fc_exch_init() [all …]
|
D | fc_elsct.c | 70 return lport->tt.exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send() 80 if (!lport->tt.elsct_send) in fc_elsct_init() 81 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
|
/drivers/usb/host/ |
D | ehci-sched.c | 116 struct usb_tt *utt = udev->tt; in find_tt() 117 struct ehci_tt *tt, **tt_index, **ptt; in find_tt() local 147 tt = *ptt; in find_tt() 148 if (!tt) { /* Create the ehci_tt */ in find_tt() 152 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); in find_tt() 153 if (!tt) { in find_tt() 160 list_add_tail(&tt->tt_list, &ehci->tt_list); in find_tt() 161 INIT_LIST_HEAD(&tt->ps_list); in find_tt() 162 tt->usb_tt = utt; in find_tt() 163 tt->tt_port = port; in find_tt() [all …]
|
D | ehci-q.c | 170 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { in ehci_clear_tt_buffer() 172 struct usb_device *tt = urb->dev->tt->hub; in ehci_clear_tt_buffer() local 173 dev_dbg(&tt->dev, in ehci_clear_tt_buffer() 179 || urb->dev->tt->hub != in ehci_clear_tt_buffer() 767 struct usb_tt *tt = urb->dev->tt; in qh_make() local 845 think_time = tt ? tt->think_time : 0; in qh_make() 897 if (tt && tt->hub != ehci_to_hcd(ehci)->self.root_hub) in qh_make() 898 info2 |= tt->hub->devnum << 16; in qh_make()
|
D | xhci-mem.c | 875 struct usb_tt *tt, gfp_t mem_flags) in xhci_alloc_tt_info() argument 881 if (!tt->multi) in xhci_alloc_tt_info() 896 if (tt->multi) in xhci_alloc_tt_info() 1164 if (!udev->tt || !udev->tt->hub->parent) { in xhci_setup_addressable_virt_dev() 1173 if (tt_bw->slot_id != udev->tt->hub->slot_id) in xhci_setup_addressable_virt_dev() 1176 if (!dev->udev->tt->multi || in xhci_setup_addressable_virt_dev() 1177 (udev->tt->multi && in xhci_setup_addressable_virt_dev() 1189 if (udev->tt && udev->tt->hub->parent) { in xhci_setup_addressable_virt_dev() 1190 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | in xhci_setup_addressable_virt_dev() 1192 if (udev->tt->multi) in xhci_setup_addressable_virt_dev() [all …]
|
/drivers/gpu/drm/ast/ |
D | ast_ttm.c | 200 static void ast_ttm_backend_destroy(struct ttm_tt *tt) in ast_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); in ast_ttm_backend_destroy() 203 kfree(tt); in ast_ttm_backend_destroy() 215 struct ttm_tt *tt; in ast_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in ast_ttm_tt_create() 218 if (tt == NULL) in ast_ttm_tt_create() 220 tt->func = &ast_tt_backend_func; in ast_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in ast_ttm_tt_create() 222 kfree(tt); in ast_ttm_tt_create() 225 return tt; in ast_ttm_tt_create()
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_ttm.c | 200 static void cirrus_ttm_backend_destroy(struct ttm_tt *tt) in cirrus_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); in cirrus_ttm_backend_destroy() 203 kfree(tt); in cirrus_ttm_backend_destroy() 215 struct ttm_tt *tt; in cirrus_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in cirrus_ttm_tt_create() 218 if (tt == NULL) in cirrus_ttm_tt_create() 220 tt->func = &cirrus_tt_backend_func; in cirrus_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in cirrus_ttm_tt_create() 222 kfree(tt); in cirrus_ttm_tt_create() 225 return tt; in cirrus_ttm_tt_create()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_ttm.c | 200 static void mgag200_ttm_backend_destroy(struct ttm_tt *tt) in mgag200_ttm_backend_destroy() argument 202 ttm_tt_fini(tt); in mgag200_ttm_backend_destroy() 203 kfree(tt); in mgag200_ttm_backend_destroy() 215 struct ttm_tt *tt; in mgag200_ttm_tt_create() local 217 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in mgag200_ttm_tt_create() 218 if (tt == NULL) in mgag200_ttm_tt_create() 220 tt->func = &mgag200_tt_backend_func; in mgag200_ttm_tt_create() 221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in mgag200_ttm_tt_create() 222 kfree(tt); in mgag200_ttm_tt_create() 225 return tt; in mgag200_ttm_tt_create()
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 101 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd() 171 cmd->seq = lport->tt.seq_start_next(cmd->seq); in ft_queue_status() 175 rc = lport->tt.seq_send(lport, cmd->seq, fp); in ft_queue_status() 187 lport->tt.exch_done(cmd->seq); in ft_queue_status() 225 cmd->seq = lport->tt.seq_start_next(cmd->seq); in ft_write_pending() 240 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending() 246 lport->tt.seq_send(lport, cmd->seq, fp); in ft_write_pending() 336 lport->tt.seq_send(lport, sp, fp); in ft_send_resp_status() 337 lport->tt.exch_done(sp); in ft_send_resp_status() 339 lport->tt.frame_send(lport, fp); in ft_send_resp_status() [all …]
|
/drivers/isdn/pcbit/ |
D | layer2.c | 151 unsigned short tt; in pcbit_transmit() local 235 tt = ((ushort) (flen - 2)) | 0x8000U; /* Type 1 */ in pcbit_transmit() 236 pcbit_writew(dev, tt); in pcbit_transmit() 326 unsigned short tt; in pcbit_receive() local 336 tt = pcbit_readw(dev); in pcbit_receive() 338 if ((tt & 0x7fffU) > 511) { in pcbit_receive() 340 tt); in pcbit_receive() 344 if (!(tt & 0x8000U)) { /* Type 0 */ in pcbit_receive() 423 tt &= 0x7fffU; in pcbit_receive() 428 dev->readptr += tt; in pcbit_receive() [all …]
|
/drivers/gpu/drm/bochs/ |
D | bochs_mm.c | 177 static void bochs_ttm_backend_destroy(struct ttm_tt *tt) in bochs_ttm_backend_destroy() argument 179 ttm_tt_fini(tt); in bochs_ttm_backend_destroy() 180 kfree(tt); in bochs_ttm_backend_destroy() 192 struct ttm_tt *tt; in bochs_ttm_tt_create() local 194 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in bochs_ttm_tt_create() 195 if (tt == NULL) in bochs_ttm_tt_create() 197 tt->func = &bochs_tt_backend_func; in bochs_ttm_tt_create() 198 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in bochs_ttm_tt_create() 199 kfree(tt); in bochs_ttm_tt_create() 202 return tt; in bochs_ttm_tt_create()
|
/drivers/block/aoe/ |
D | aoecmd.c | 253 struct aoetgt *t, **tt; in newframe() local 262 tt = d->tgt; /* last used target */ in newframe() 264 tt++; in newframe() 265 if (tt >= &d->targets[d->ntargets] || !*tt) in newframe() 266 tt = d->targets; in newframe() 267 t = *tt; in newframe() 278 d->tgt = tt; in newframe() 282 if (tt == d->tgt) { /* we've looped and found nada */ in newframe() 1488 struct aoetgt **tt; in grow_targets() local 1492 tt = kcalloc(newn, sizeof(*d->targets), GFP_ATOMIC); in grow_targets() [all …]
|
D | aoedev.c | 199 struct aoetgt *t, **tt, **te; in aoedev_downdev() local 217 tt = d->targets; in aoedev_downdev() 218 te = tt + d->ntargets; in aoedev_downdev() 219 for (; tt < te && (t = *tt); tt++) { in aoedev_downdev()
|
/drivers/usb/core/ |
D | hub.c | 696 hub_clear_tt_buffer (struct usb_device *hdev, u16 devinfo, u16 tt) in hub_clear_tt_buffer() argument 703 devinfo ^ 0x8000, tt, NULL, 0, 1000); in hub_clear_tt_buffer() 709 tt, NULL, 0, 1000); in hub_clear_tt_buffer() 721 container_of(work, struct usb_hub, tt.clear_work); in hub_tt_work() 724 spin_lock_irqsave (&hub->tt.lock, flags); in hub_tt_work() 725 while (!list_empty(&hub->tt.clear_list)) { in hub_tt_work() 732 next = hub->tt.clear_list.next; in hub_tt_work() 737 spin_unlock_irqrestore (&hub->tt.lock, flags); in hub_tt_work() 738 status = hub_clear_tt_buffer (hdev, clear->devinfo, clear->tt); in hub_tt_work() 742 clear->tt, clear->devinfo, status); in hub_tt_work() [all …]
|
/drivers/isdn/hardware/mISDN/ |
D | mISDNisar.c | 1095 int tt; in mISDNisar_irq() local 1096 tt = isar->cmsb | 0x30; in mISDNisar_irq() 1097 if (tt == 0x3e) in mISDNisar_irq() 1098 tt = '*'; in mISDNisar_irq() 1099 else if (tt == 0x3f) in mISDNisar_irq() 1100 tt = '#'; in mISDNisar_irq() 1101 else if (tt > '9') in mISDNisar_irq() 1102 tt += 7; in mISDNisar_irq() 1103 tt |= DTMF_TONE_VAL; in mISDNisar_irq() 1105 MISDN_ID_ANY, sizeof(tt), &tt, in mISDNisar_irq() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 2114 lport->tt.rport_logoff(rdata); in fcoe_ctlr_vn_rport_callback() 2139 lport->tt.rport_logoff(rdata); in fcoe_ctlr_disc_stop_locked() 2170 lport->tt.rport_flush_queue(); in fcoe_ctlr_disc_stop_final() 2459 rdata = lport->tt.rport_create(lport, port_id); in fcoe_ctlr_vn_add() 2471 lport->tt.rport_logoff(rdata); in fcoe_ctlr_vn_add() 2499 rdata = lport->tt.rport_lookup(lport, port_id); in fcoe_ctlr_vn_lookup() 2588 rdata = lport->tt.rport_lookup(lport, new->ids.port_id); in fcoe_ctlr_vn_beacon() 2597 lport->tt.rport_login(rdata); in fcoe_ctlr_vn_beacon() 2600 kref_put(&rdata->kref, lport->tt.rport_destroy); in fcoe_ctlr_vn_beacon() 2647 lport->tt.rport_logoff(rdata); in fcoe_ctlr_vn_age() [all …]
|
/drivers/scsi/ |
D | libiscsi_tcp.c | 246 if (!(tcp_conn->iscsi_conn->session->tt->caps & CAP_PADDING_OFFLOAD)) { in iscsi_tcp_segment_done() 437 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) in iscsi_tcp_data_recv_prep() 701 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) in iscsi_tcp_hdr_dissect() 832 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) { in iscsi_tcp_hdr_recv_done() 971 return conn->session->tt->init_pdu(task, 0, task->data_count); in iscsi_tcp_task_init() 981 err = conn->session->tt->init_pdu(task, 0, task->imm_count); in iscsi_tcp_task_init() 1042 rc = session->tt->xmit_pdu(task); in iscsi_tcp_task_xmit() 1064 rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_DATA_OUT); in iscsi_tcp_task_xmit() 1073 rc = conn->session->tt->init_pdu(task, r2t->data_offset + r2t->sent, in iscsi_tcp_task_xmit()
|