/linux-6.6.21/kernel/trace/ |
D | trace_fprobe.c | 70 static bool trace_fprobe_is_return(struct trace_fprobe *tf) in trace_fprobe_is_return() argument 72 return tf->fp.exit_handler != NULL; in trace_fprobe_is_return() 75 static bool trace_fprobe_is_tracepoint(struct trace_fprobe *tf) in trace_fprobe_is_tracepoint() argument 77 return tf->tpoint != NULL; in trace_fprobe_is_tracepoint() 80 static const char *trace_fprobe_symbol(struct trace_fprobe *tf) in trace_fprobe_symbol() argument 82 return tf->symbol ? tf->symbol : "unknown"; in trace_fprobe_symbol() 87 struct trace_fprobe *tf = to_trace_fprobe(ev); in trace_fprobe_is_busy() local 89 return trace_probe_is_enabled(&tf->tp); in trace_fprobe_is_busy() 92 static bool trace_fprobe_match_command_head(struct trace_fprobe *tf, in trace_fprobe_match_command_head() argument 100 snprintf(buf, sizeof(buf), "%s", trace_fprobe_symbol(tf)); in trace_fprobe_match_command_head() [all …]
|
/linux-6.6.21/drivers/ata/ |
D | sata_promise.h | 28 static inline unsigned int pdc_pkt_header(struct ata_taskfile *tf, in pdc_pkt_header() argument 38 switch (tf->protocol) { in pdc_pkt_header() 40 if (!(tf->flags & ATA_TFLAG_WRITE)) in pdc_pkt_header() 69 buf[15] = tf->ctl; in pdc_pkt_header() 74 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, in pdc_pkt_footer() argument 77 if (tf->flags & ATA_TFLAG_DEVICE) { in pdc_pkt_footer() 79 buf[i++] = tf->device; in pdc_pkt_footer() 84 buf[i++] = tf->command; in pdc_pkt_footer() 89 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba28() argument 95 buf[i++] = tf->feature; in pdc_prep_lba28() [all …]
|
D | libata-acpi.c | 33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member 543 struct ata_taskfile *tf) in ata_acpi_gtf_to_tf() argument 545 ata_tf_init(dev, tf); in ata_acpi_gtf_to_tf() 547 tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in ata_acpi_gtf_to_tf() 548 tf->protocol = ATA_PROT_NODATA; in ata_acpi_gtf_to_tf() 549 tf->error = gtf->tf[0]; /* 0x1f1 */ in ata_acpi_gtf_to_tf() 550 tf->nsect = gtf->tf[1]; /* 0x1f2 */ in ata_acpi_gtf_to_tf() 551 tf->lbal = gtf->tf[2]; /* 0x1f3 */ in ata_acpi_gtf_to_tf() 552 tf->lbam = gtf->tf[3]; /* 0x1f4 */ in ata_acpi_gtf_to_tf() 553 tf->lbah = gtf->tf[4]; /* 0x1f5 */ in ata_acpi_gtf_to_tf() [all …]
|
D | sata_vsc.c | 142 static void vsc_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in vsc_sata_tf_load() argument 145 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in vsc_sata_tf_load() 153 if ((tf->ctl & ATA_NIEN) != (ap->last_ctl & ATA_NIEN)) { in vsc_sata_tf_load() 154 ap->last_ctl = tf->ctl; in vsc_sata_tf_load() 155 vsc_intr_mask_update(ap, tf->ctl & ATA_NIEN); in vsc_sata_tf_load() 157 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in vsc_sata_tf_load() 158 writew(tf->feature | (((u16)tf->hob_feature) << 8), in vsc_sata_tf_load() 160 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in vsc_sata_tf_load() 162 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), in vsc_sata_tf_load() 164 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), in vsc_sata_tf_load() [all …]
|
D | sata_svw.c | 159 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in k2_sata_tf_load() argument 162 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in k2_sata_tf_load() 164 if (tf->ctl != ap->last_ctl) { in k2_sata_tf_load() 165 writeb(tf->ctl, ioaddr->ctl_addr); in k2_sata_tf_load() 166 ap->last_ctl = tf->ctl; in k2_sata_tf_load() 169 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in k2_sata_tf_load() 170 writew(tf->feature | (((u16)tf->hob_feature) << 8), in k2_sata_tf_load() 172 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), in k2_sata_tf_load() 174 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), in k2_sata_tf_load() 176 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), in k2_sata_tf_load() [all …]
|
D | libata-scsi.c | 221 const struct ata_taskfile *tf) in ata_scsi_set_sense_information() argument 225 information = ata_tf_read_block(tf, dev); in ata_scsi_set_sense_information() 856 struct ata_taskfile *tf = &qc->result_tf; in ata_gen_passthru_sense() local 868 tf->status & (ATA_BUSY | ATA_DF | ATA_ERR | ATA_DRQ)) { in ata_gen_passthru_sense() 869 ata_to_sense_error(qc->ap->print_id, tf->status, tf->error, in ata_gen_passthru_sense() 898 desc[3] = tf->error; in ata_gen_passthru_sense() 899 desc[5] = tf->nsect; in ata_gen_passthru_sense() 900 desc[7] = tf->lbal; in ata_gen_passthru_sense() 901 desc[9] = tf->lbam; in ata_gen_passthru_sense() 902 desc[11] = tf->lbah; in ata_gen_passthru_sense() [all …]
|
D | pata_ns87415.c | 123 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in ns87415_bmdma_setup() 140 ap->ops->sff_exec_command(ap, &qc->tf); in ns87415_bmdma_setup() 263 static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in ns87560_tf_read() argument 267 tf->status = ns87560_check_status(ap); in ns87560_tf_read() 268 tf->error = ioread8(ioaddr->error_addr); in ns87560_tf_read() 269 tf->nsect = ioread8(ioaddr->nsect_addr); in ns87560_tf_read() 270 tf->lbal = ioread8(ioaddr->lbal_addr); in ns87560_tf_read() 271 tf->lbam = ioread8(ioaddr->lbam_addr); in ns87560_tf_read() 272 tf->lbah = ioread8(ioaddr->lbah_addr); in ns87560_tf_read() 273 tf->device = ns87560_read_buggy(ioaddr->device_addr); in ns87560_tf_read() [all …]
|
D | pata_octeon_cf.c | 379 static void octeon_cf_tf_read16(struct ata_port *ap, struct ata_taskfile *tf) in octeon_cf_tf_read16() argument 386 tf->error = blob >> 8; in octeon_cf_tf_read16() 389 tf->nsect = blob & 0xff; in octeon_cf_tf_read16() 390 tf->lbal = blob >> 8; in octeon_cf_tf_read16() 393 tf->lbam = blob & 0xff; in octeon_cf_tf_read16() 394 tf->lbah = blob >> 8; in octeon_cf_tf_read16() 397 tf->device = blob & 0xff; in octeon_cf_tf_read16() 398 tf->status = blob >> 8; in octeon_cf_tf_read16() 400 if (tf->flags & ATA_TFLAG_LBA48) { in octeon_cf_tf_read16() 402 iowrite8(tf->ctl | ATA_HOB, ap->ioaddr.ctl_addr); in octeon_cf_tf_read16() [all …]
|
D | libata-core.c | 588 struct ata_taskfile *tf) in ata_set_rwcmd_protocol() argument 594 fua = (tf->flags & ATA_TFLAG_FUA) ? 4 : 0; in ata_set_rwcmd_protocol() 595 lba48 = (tf->flags & ATA_TFLAG_LBA48) ? 2 : 0; in ata_set_rwcmd_protocol() 596 write = (tf->flags & ATA_TFLAG_WRITE) ? 1 : 0; in ata_set_rwcmd_protocol() 599 tf->protocol = ATA_PROT_PIO; in ata_set_rwcmd_protocol() 603 tf->protocol = ATA_PROT_PIO; in ata_set_rwcmd_protocol() 606 tf->protocol = ATA_PROT_DMA; in ata_set_rwcmd_protocol() 614 tf->command = cmd; in ata_set_rwcmd_protocol() 634 u64 ata_tf_read_block(const struct ata_taskfile *tf, struct ata_device *dev) in ata_tf_read_block() argument 638 if (tf->flags & ATA_TFLAG_LBA) { in ata_tf_read_block() [all …]
|
D | libata-sata.c | 151 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument 158 fis[2] = tf->command; in ata_tf_to_fis() 159 fis[3] = tf->feature; in ata_tf_to_fis() 161 fis[4] = tf->lbal; in ata_tf_to_fis() 162 fis[5] = tf->lbam; in ata_tf_to_fis() 163 fis[6] = tf->lbah; in ata_tf_to_fis() 164 fis[7] = tf->device; in ata_tf_to_fis() 166 fis[8] = tf->hob_lbal; in ata_tf_to_fis() 167 fis[9] = tf->hob_lbam; in ata_tf_to_fis() 168 fis[10] = tf->hob_lbah; in ata_tf_to_fis() [all …]
|
D | libata-sff.c | 343 void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in ata_sff_tf_load() argument 346 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in ata_sff_tf_load() 348 if (tf->ctl != ap->last_ctl) { in ata_sff_tf_load() 350 iowrite8(tf->ctl, ioaddr->ctl_addr); in ata_sff_tf_load() 351 ap->last_ctl = tf->ctl; in ata_sff_tf_load() 355 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in ata_sff_tf_load() 357 iowrite8(tf->hob_feature, ioaddr->feature_addr); in ata_sff_tf_load() 358 iowrite8(tf->hob_nsect, ioaddr->nsect_addr); in ata_sff_tf_load() 359 iowrite8(tf->hob_lbal, ioaddr->lbal_addr); in ata_sff_tf_load() 360 iowrite8(tf->hob_lbam, ioaddr->lbam_addr); in ata_sff_tf_load() [all …]
|
D | sata_inic162x.c | 416 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr() 464 if (qc->tf.flags & ATA_TFLAG_WRITE) in inic_fill_sg() 467 if (ata_is_dma(qc->tf.protocol)) in inic_fill_sg() 487 bool is_atapi = ata_is_atapi(qc->tf.protocol); in inic_qc_prep() 488 bool is_data = ata_is_data(qc->tf.protocol); in inic_qc_prep() 504 cpb->device = qc->tf.device; in inic_qc_prep() 505 cpb->feature = qc->tf.feature; in inic_qc_prep() 506 cpb->nsect = qc->tf.nsect; in inic_qc_prep() 507 cpb->lbal = qc->tf.lbal; in inic_qc_prep() 508 cpb->lbam = qc->tf.lbam; in inic_qc_prep() [all …]
|
D | pata_ep93xx.c | 375 const struct ata_taskfile *tf) in ep93xx_pata_tf_load() argument 378 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in ep93xx_pata_tf_load() 380 if (tf->ctl != ap->last_ctl) { in ep93xx_pata_tf_load() 381 ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_tf_load() 382 ap->last_ctl = tf->ctl; in ep93xx_pata_tf_load() 386 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in ep93xx_pata_tf_load() 387 ep93xx_pata_write_reg(drv_data, tf->hob_feature, in ep93xx_pata_tf_load() 389 ep93xx_pata_write_reg(drv_data, tf->hob_nsect, in ep93xx_pata_tf_load() 391 ep93xx_pata_write_reg(drv_data, tf->hob_lbal, in ep93xx_pata_tf_load() 393 ep93xx_pata_write_reg(drv_data, tf->hob_lbam, in ep93xx_pata_tf_load() [all …]
|
D | libata-zpodd.c | 37 struct ata_taskfile tf; in eject_tray() local 44 ata_tf_init(dev, &tf); in eject_tray() 45 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in eject_tray() 46 tf.command = ATA_CMD_PACKET; in eject_tray() 47 tf.protocol = ATAPI_PROT_NODATA; in eject_tray() 49 return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); in eject_tray() 58 struct ata_taskfile tf; in zpodd_get_mech_type() local 72 ata_tf_init(dev, &tf); in zpodd_get_mech_type() 73 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in zpodd_get_mech_type() 74 tf.command = ATA_CMD_PACKET; in zpodd_get_mech_type() [all …]
|
D | sata_rcar.c | 360 const struct ata_taskfile *tf) in sata_rcar_tf_load() argument 363 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in sata_rcar_tf_load() 365 if (tf->ctl != ap->last_ctl) { in sata_rcar_tf_load() 366 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_load() 367 ap->last_ctl = tf->ctl; in sata_rcar_tf_load() 371 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in sata_rcar_tf_load() 372 iowrite32(tf->hob_feature, ioaddr->feature_addr); in sata_rcar_tf_load() 373 iowrite32(tf->hob_nsect, ioaddr->nsect_addr); in sata_rcar_tf_load() 374 iowrite32(tf->hob_lbal, ioaddr->lbal_addr); in sata_rcar_tf_load() 375 iowrite32(tf->hob_lbam, ioaddr->lbam_addr); in sata_rcar_tf_load() [all …]
|
D | pata_via.c | 390 static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in via_tf_load() argument 394 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in via_tf_load() 397 if (tf->ctl != ap->last_ctl) { in via_tf_load() 398 iowrite8(tf->ctl, ioaddr->ctl_addr); in via_tf_load() 399 ap->last_ctl = tf->ctl; in via_tf_load() 404 if (tf->flags & ATA_TFLAG_DEVICE) { in via_tf_load() 405 iowrite8(tf->device, ioaddr->device_addr); in via_tf_load() 406 vp->cached_device = tf->device; in via_tf_load() 410 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in via_tf_load() 412 iowrite8(tf->hob_feature, ioaddr->feature_addr); in via_tf_load() [all …]
|
D | sata_sx4.c | 209 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 210 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 331 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf, in pdc20621_ata_pkt() argument 348 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_ata_pkt() 350 else if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt() 360 if (tf->protocol == ATA_PROT_NODATA) in pdc20621_ata_pkt() 378 buf[i++] = tf->ctl; in pdc20621_ata_pkt() 383 static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf, in pdc20621_host_pkt() argument 402 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE))) in pdc20621_host_pkt() 446 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno); in pdc20621_dma_prep() [all …]
|
D | libata-pmp.c | 42 struct ata_taskfile tf; in sata_pmp_read() local 45 ata_tf_init(pmp_dev, &tf); in sata_pmp_read() 46 tf.command = ATA_CMD_PMP_READ; in sata_pmp_read() 47 tf.protocol = ATA_PROT_NODATA; in sata_pmp_read() 48 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48; in sata_pmp_read() 49 tf.feature = reg; in sata_pmp_read() 50 tf.device = link->pmp; in sata_pmp_read() 52 err_mask = ata_exec_internal(pmp_dev, &tf, NULL, DMA_NONE, NULL, 0, in sata_pmp_read() 57 *r_val = tf.nsect | tf.lbal << 8 | tf.lbam << 16 | tf.lbah << 24; in sata_pmp_read() 79 struct ata_taskfile tf; in sata_pmp_write() local [all …]
|
/linux-6.6.21/drivers/target/ |
D | target_core_fabric_configfs.c | 38 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \ 40 struct config_item_type *cit = &tf->tf_##_name##_cit; \ 45 cit->ct_owner = tf->tf_ops->module; \ 50 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \ 52 struct config_item_type *cit = &tf->tf_##_name##_cit; \ 53 struct configfs_attribute **attrs = tf->tf_ops->tfc_##_name##_attrs; \ 58 cit->ct_owner = tf->tf_ops->module; \ 272 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; in target_fabric_make_mappedlun() local 309 &tf->tf_tpg_mappedlun_cit); in target_fabric_make_mappedlun() 312 "statistics", &tf->tf_tpg_mappedlun_stat_cit); in target_fabric_make_mappedlun() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/selftests/ |
D | lib_sw_fence.c | 58 struct timed_fence *tf = from_timer(tf, t, timer); in timed_fence_wake() local 60 i915_sw_fence_commit(&tf->fence); in timed_fence_wake() 63 void timed_fence_init(struct timed_fence *tf, unsigned long expires) in timed_fence_init() argument 65 onstack_fence_init(&tf->fence); in timed_fence_init() 67 timer_setup_on_stack(&tf->timer, timed_fence_wake, 0); in timed_fence_init() 70 mod_timer(&tf->timer, expires); in timed_fence_init() 72 i915_sw_fence_commit(&tf->fence); in timed_fence_init() 75 void timed_fence_fini(struct timed_fence *tf) in timed_fence_fini() argument 77 if (del_timer_sync(&tf->timer)) in timed_fence_fini() 78 i915_sw_fence_commit(&tf->fence); in timed_fence_fini() [all …]
|
/linux-6.6.21/drivers/thunderbolt/ |
D | dma_test.c | 233 struct dma_test_frame *tf = container_of(frame, typeof(*tf), frame); in dma_test_rx_callback() local 234 struct dma_test *dt = tf->dma_test; in dma_test_rx_callback() 237 dma_unmap_single(dma_dev, tf->frame.buffer_phy, DMA_TEST_FRAME_SIZE, in dma_test_rx_callback() 239 kfree(tf->data); in dma_test_rx_callback() 242 kfree(tf); in dma_test_rx_callback() 250 if (tf->frame.flags & RING_DESC_CRC_ERROR) in dma_test_rx_callback() 252 if (tf->frame.flags & RING_DESC_BUFFER_OVERRUN) in dma_test_rx_callback() 255 kfree(tf); in dma_test_rx_callback() 267 struct dma_test_frame *tf; in dma_test_submit_rx() local 270 tf = kzalloc(sizeof(*tf), GFP_KERNEL); in dma_test_submit_rx() [all …]
|
/linux-6.6.21/include/trace/events/ |
D | libata.h | 213 __entry->proto = qc->tf.protocol; 214 __entry->cmd = qc->tf.command; 215 __entry->dev = qc->tf.device; 216 __entry->lbal = qc->tf.lbal; 217 __entry->lbam = qc->tf.lbam; 218 __entry->lbah = qc->tf.lbah; 219 __entry->hob_lbal = qc->tf.hob_lbal; 220 __entry->hob_lbam = qc->tf.hob_lbam; 221 __entry->hob_lbah = qc->tf.hob_lbah; 222 __entry->feature = qc->tf.feature; [all …]
|
/linux-6.6.21/drivers/ata/pata_parport/ |
D | pata_parport.c | 215 const struct ata_taskfile *tf) in pata_parport_tf_load() argument 219 if (tf->ctl != ap->last_ctl) { in pata_parport_tf_load() 220 pi->proto->write_regr(pi, 1, 6, tf->ctl); in pata_parport_tf_load() 221 ap->last_ctl = tf->ctl; in pata_parport_tf_load() 225 if (tf->flags & ATA_TFLAG_ISADDR) { in pata_parport_tf_load() 226 if (tf->flags & ATA_TFLAG_LBA48) { in pata_parport_tf_load() 228 tf->hob_feature); in pata_parport_tf_load() 230 tf->hob_nsect); in pata_parport_tf_load() 232 tf->hob_lbal); in pata_parport_tf_load() 234 tf->hob_lbam); in pata_parport_tf_load() [all …]
|
/linux-6.6.21/drivers/net/thunderbolt/ |
D | main.c | 329 static inline unsigned int tbnet_frame_size(const struct tbnet_frame *tf) in tbnet_frame_size() argument 331 return tf->frame.size ? : TBNET_FRAME_SIZE; in tbnet_frame_size() 340 struct tbnet_frame *tf = &ring->frames[i]; in tbnet_free_buffers() local 345 if (!tf->page) in tbnet_free_buffers() 358 trace_tbnet_free_frame(i, tf->page, tf->frame.buffer_phy, dir); in tbnet_free_buffers() 360 if (tf->frame.buffer_phy) in tbnet_free_buffers() 361 dma_unmap_page(dma_dev, tf->frame.buffer_phy, size, in tbnet_free_buffers() 364 __free_pages(tf->page, order); in tbnet_free_buffers() 365 tf->page = NULL; in tbnet_free_buffers() 507 struct tbnet_frame *tf = &ring->frames[index]; in tbnet_alloc_rx_buffers() local [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_surface.c | 223 void dc_transfer_func_retain(struct dc_transfer_func *tf) in dc_transfer_func_retain() argument 225 kref_get(&tf->refcount); in dc_transfer_func_retain() 230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free() local 231 kvfree(tf); in dc_transfer_func_free() 234 void dc_transfer_func_release(struct dc_transfer_func *tf) in dc_transfer_func_release() argument 236 kref_put(&tf->refcount, dc_transfer_func_free); in dc_transfer_func_release() 241 struct dc_transfer_func *tf = kvzalloc(sizeof(*tf), GFP_KERNEL); in dc_create_transfer_func() local 243 if (tf == NULL) in dc_create_transfer_func() 246 kref_init(&tf->refcount); in dc_create_transfer_func() 248 return tf; in dc_create_transfer_func()
|