Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 25 of 66) sorted by relevance

123

/linux/kernel/trace/
H A Dtrace_fprobe.c216 static bool trace_fprobe_is_return(struct trace_fprobe *tf) in trace_fprobe_is_return() argument
218 return tf->fp.exit_handler != NULL; in trace_fprobe_is_return()
221 static bool trace_fprobe_is_tracepoint(struct trace_fprobe *tf) in trace_fprobe_is_tracepoint() argument
223 return tf->tprobe; in trace_fprobe_is_tracepoint()
226 static const char *trace_fprobe_symbol(struct trace_fprobe *tf) in trace_fprobe_symbol() argument
228 return tf->symbol ? tf->symbol : "unknown"; in trace_fprobe_symbol()
233 struct trace_fprobe *tf = to_trace_fprobe(ev); in trace_fprobe_is_busy() local
235 return trace_probe_is_enabled(&tf->tp); in trace_fprobe_is_busy()
238 static bool trace_fprobe_match_command_head(struct trace_fprobe *tf, in trace_fprobe_match_command_head() argument
244 if (strcmp(trace_fprobe_symbol(tf), argv[0])) in trace_fprobe_match_command_head()
[all …]
/linux/drivers/ata/
H A Dsata_promise.h28 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 …]
H A Dlibata-acpi.c33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member
618 struct ata_taskfile *tf) in ata_acpi_gtf_to_tf() argument
620 ata_tf_init(dev, tf); in ata_acpi_gtf_to_tf()
622 tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in ata_acpi_gtf_to_tf()
623 tf->protocol = ATA_PROT_NODATA; in ata_acpi_gtf_to_tf()
624 tf->error = gtf->tf[0]; /* 0x1f1 */ in ata_acpi_gtf_to_tf()
625 tf->nsect = gtf->tf[1]; /* 0x1f2 */ in ata_acpi_gtf_to_tf()
626 tf->lbal = gtf->tf[2]; /* 0x1f3 */ in ata_acpi_gtf_to_tf()
627 tf->lbam = gtf->tf[3]; /* 0x1f4 */ in ata_acpi_gtf_to_tf()
628 tf->lbah = gtf->tf[4]; /* 0x1f5 */ in ata_acpi_gtf_to_tf()
[all …]
H A Dlibata-scsi.c249 struct ata_taskfile *tf = &qc->result_tf; in ata_scsi_set_passthru_sense_fields() local
277 desc[3] = tf->error; in ata_scsi_set_passthru_sense_fields()
278 desc[5] = tf->nsect; in ata_scsi_set_passthru_sense_fields()
279 desc[7] = tf->lbal; in ata_scsi_set_passthru_sense_fields()
280 desc[9] = tf->lbam; in ata_scsi_set_passthru_sense_fields()
281 desc[11] = tf->lbah; in ata_scsi_set_passthru_sense_fields()
282 desc[12] = tf->device; in ata_scsi_set_passthru_sense_fields()
283 desc[13] = tf->status; in ata_scsi_set_passthru_sense_fields()
289 if (tf->flags & ATA_TFLAG_LBA48) { in ata_scsi_set_passthru_sense_fields()
291 desc[4] = tf->hob_nsect; in ata_scsi_set_passthru_sense_fields()
[all …]
H A Dpata_ns87415.c123 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 …]
H A Dpata_octeon_cf.c379 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 …]
H A Dlibata-core.c620 struct ata_taskfile *tf) in ata_set_rwcmd_protocol() argument
626 fua = (tf->flags & ATA_TFLAG_FUA) ? 4 : 0; in ata_set_rwcmd_protocol()
627 lba48 = (tf->flags & ATA_TFLAG_LBA48) ? 2 : 0; in ata_set_rwcmd_protocol()
628 write = (tf->flags & ATA_TFLAG_WRITE) ? 1 : 0; in ata_set_rwcmd_protocol()
631 tf->protocol = ATA_PROT_PIO; in ata_set_rwcmd_protocol()
635 tf->protocol = ATA_PROT_PIO; in ata_set_rwcmd_protocol()
638 tf->protocol = ATA_PROT_DMA; in ata_set_rwcmd_protocol()
646 tf->command = cmd; in ata_set_rwcmd_protocol()
666 u64 ata_tf_read_block(const struct ata_taskfile *tf, struct ata_device *dev) in ata_tf_read_block() argument
670 if (tf->flags & ATA_TFLAG_LBA) { in ata_tf_read_block()
[all …]
H A Dlibata-sata.c151 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 …]
H A Dpata_ep93xx.c377 const struct ata_taskfile *tf) in ep93xx_pata_tf_load() argument
380 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR; in ep93xx_pata_tf_load()
382 if (tf->ctl != ap->last_ctl) { in ep93xx_pata_tf_load()
383 ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_tf_load()
384 ap->last_ctl = tf->ctl; in ep93xx_pata_tf_load()
388 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) { in ep93xx_pata_tf_load()
389 ep93xx_pata_write_reg(drv_data, tf->hob_feature, in ep93xx_pata_tf_load()
391 ep93xx_pata_write_reg(drv_data, tf->hob_nsect, in ep93xx_pata_tf_load()
393 ep93xx_pata_write_reg(drv_data, tf->hob_lbal, in ep93xx_pata_tf_load()
395 ep93xx_pata_write_reg(drv_data, tf->hob_lbam, in ep93xx_pata_tf_load()
[all …]
H A Dlibata-zpodd.c37 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 …]
H A Dsata_rcar.c360 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 …]
H A Dlibata-eh.c1428 struct ata_taskfile tf; in atapi_eh_tur() local
1431 ata_tf_init(dev, &tf); in atapi_eh_tur()
1433 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in atapi_eh_tur()
1434 tf.command = ATA_CMD_PACKET; in atapi_eh_tur()
1435 tf.protocol = ATAPI_PROT_NODATA; in atapi_eh_tur()
1437 err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); in atapi_eh_tur()
1439 *r_sense_key = tf.error >> 4; in atapi_eh_tur()
1497 struct ata_taskfile tf; in ata_eh_request_sense() local
1510 ata_tf_init(dev, &tf); in ata_eh_request_sense()
1511 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in ata_eh_request_sense()
[all …]
H A Dsata_dwc_460ex.c510 trace_ata_bmdma_start(ap, &qc->tf, tag); in sata_dwc_isr()
529 if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { in sata_dwc_isr()
550 __func__, get_prot_descript(qc->tf.protocol)); in sata_dwc_isr()
552 if (ata_is_dma(qc->tf.protocol)) { in sata_dwc_isr()
570 } else if (ata_is_pio(qc->tf.protocol)) { in sata_dwc_isr()
635 get_prot_descript(qc->tf.protocol)); in sata_dwc_isr()
636 if (ata_is_dma(qc->tf.protocol)) { in sata_dwc_isr()
714 if (ata_is_dma(qc->tf.protocol)) { in sata_dwc_dma_xfer_complete()
745 qc->tf.command, status, ap->print_id, qc->tf.protocol); in sata_dwc_qc_complete()
913 struct ata_taskfile *tf, in sata_dwc_exec_command_by_tag() argument
[all …]
H A Dsata_mv.c1432 if (ata_is_ncq(qc->tf.protocol)) in mv_qc_defer()
1864 ap->ops->sff_exec_command(ap, &qc->tf); in mv_bmdma_setup()
1878 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); in mv_bmdma_start()
1956 struct ata_taskfile *tf = &qc->tf; in mv_rw_multi_errata_sata24() local
1970 if ((tf->flags & ATA_TFLAG_WRITE) && is_multi_taskfile(tf)) { in mv_rw_multi_errata_sata24()
1972 switch (tf->command) { in mv_rw_multi_errata_sata24()
1974 tf->command = ATA_CMD_PIO_WRITE; in mv_rw_multi_errata_sata24()
1977 tf->flags &= ~ATA_TFLAG_FUA; /* ugh */ in mv_rw_multi_errata_sata24()
1980 tf->command = ATA_CMD_PIO_WRITE_EXT; in mv_rw_multi_errata_sata24()
2004 struct ata_taskfile *tf = &qc->tf; in mv_qc_prep() local
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Dlib_sw_fence.c58 struct timed_fence *tf = timer_container_of(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 (timer_delete_sync(&tf->timer)) in timed_fence_fini()
78 i915_sw_fence_commit(&tf->fence); in timed_fence_fini()
[all …]
/linux/include/trace/events/
H A Dlibata.h213 __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/drivers/ata/pata_parport/
H A Dpata_parport.c215 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/drivers/net/thunderbolt/
H A Dmain.c337 struct tbnet_frame *tf = &ring->frames[i]; in tbnet_free_buffers() local
342 if (!tf->page) in tbnet_free_buffers()
355 trace_tbnet_free_frame(i, tf->page, tf->frame.buffer_phy, dir); in tbnet_free_buffers()
357 if (tf->frame.buffer_phy) in tbnet_free_buffers()
358 dma_unmap_page(dma_dev, tf->frame.buffer_phy, size, in tbnet_free_buffers()
361 __free_pages(tf->page, order); in tbnet_free_buffers()
362 tf->page = NULL; in tbnet_free_buffers()
514 struct tbnet_frame *tf = &ring->frames[index]; in tbnet_alloc_rx_buffers() local
517 if (tf->page) in tbnet_alloc_rx_buffers()
524 tf->page = dev_alloc_pages(TBNET_RX_PAGE_ORDER); in tbnet_alloc_rx_buffers()
[all …]
/linux/net/mac80211/
H A Dtdls.c699 struct ieee80211_tdls_data *tf; in ieee80211_tdls_add_chan_switch_req_ies() local
705 tf = (void *)skb->data; in ieee80211_tdls_add_chan_switch_req_ies()
706 tf->u.chan_switch_req.target_channel = in ieee80211_tdls_add_chan_switch_req_ies()
708 tf->u.chan_switch_req.oper_class = oper_class; in ieee80211_tdls_add_chan_switch_req_ies()
801 struct ieee80211_tdls_data *tf; in ieee80211_prep_tdls_encap_data() local
803 tf = skb_put(skb, offsetof(struct ieee80211_tdls_data, u)); in ieee80211_prep_tdls_encap_data()
805 memcpy(tf->da, peer, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
806 memcpy(tf->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
807 tf->ether_type = cpu_to_be16(ETH_P_TDLS); in ieee80211_prep_tdls_encap_data()
808 tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; in ieee80211_prep_tdls_encap_data()
[all …]
/linux/kernel/
H A Dwatch_queue.c318 struct watch_notification_type_filter *tf; in watch_queue_set_filter() local
342 tf = memdup_array_user(_filter->filters, filter.nr_filters, sizeof(*tf)); in watch_queue_set_filter()
343 if (IS_ERR(tf)) in watch_queue_set_filter()
344 return PTR_ERR(tf); in watch_queue_set_filter()
348 if ((tf[i].info_filter & ~tf[i].info_mask) || in watch_queue_set_filter()
349 tf[i].info_mask & WATCH_INFO_LENGTH) in watch_queue_set_filter()
352 if (tf[i].type >= WATCH_TYPE__NR) in watch_queue_set_filter()
368 if (tf[i].type >= WATCH_TYPE__NR) in watch_queue_set_filter()
371 q->type = tf[i].type; in watch_queue_set_filter()
372 q->info_filter = tf[i].info_filter; in watch_queue_set_filter()
[all …]
/linux/net/6lowpan/
H A Diphc.c504 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_ecn() argument
507 u8 ecn = tf[0] & 0xc0; in lowpan_iphc_tf_set_ecn()
514 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp() argument
517 u8 dscp = tf[0] & 0x3f; in lowpan_iphc_tf_set_dscp()
548 u8 tf[4]; in lowpan_iphc_tf_decompress() local
554 if (lowpan_fetch_skb(skb, tf, 4)) in lowpan_iphc_tf_decompress()
563 lowpan_iphc_tf_set_ecn(hdr, tf); in lowpan_iphc_tf_decompress()
564 lowpan_iphc_tf_set_dscp(hdr, tf); in lowpan_iphc_tf_decompress()
565 lowpan_iphc_tf_set_lbl(hdr, &tf[1]); in lowpan_iphc_tf_decompress()
569 if (lowpan_fetch_skb(skb, tf, 3)) in lowpan_iphc_tf_decompress()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dtdls.c469 struct ieee80211_tdls_data *tf; in mwifiex_prep_tdls_encap_data() local
477 tf = skb_put(skb, offsetof(struct ieee80211_tdls_data, u)); in mwifiex_prep_tdls_encap_data()
478 memcpy(tf->da, peer, ETH_ALEN); in mwifiex_prep_tdls_encap_data()
479 memcpy(tf->sa, priv->curr_addr, ETH_ALEN); in mwifiex_prep_tdls_encap_data()
480 tf->ether_type = cpu_to_be16(ETH_P_TDLS); in mwifiex_prep_tdls_encap_data()
481 tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; in mwifiex_prep_tdls_encap_data()
485 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
486 tf->action_code = WLAN_TDLS_SETUP_REQUEST; in mwifiex_prep_tdls_encap_data()
487 skb_put(skb, sizeof(tf->u.setup_req)); in mwifiex_prep_tdls_encap_data()
488 tf->u.setup_req.dialog_token = dialog_token; in mwifiex_prep_tdls_encap_data()
[all …]
/linux/include/linux/
H A Dlibata.h654 struct ata_taskfile tf; member
988 unsigned int (*read_id)(struct ata_device *dev, struct ata_taskfile *tf,
1031 void (*sff_tf_load)(struct ata_port *ap, const struct ata_taskfile *tf);
1032 void (*sff_tf_read)(struct ata_port *ap, struct ata_taskfile *tf);
1034 const struct ata_taskfile *tf);
1120 static inline int is_multi_taskfile(struct ata_taskfile *tf) in is_multi_taskfile() argument
1122 return (tf->command == ATA_CMD_READ_MULTI) || in is_multi_taskfile()
1123 (tf->command == ATA_CMD_WRITE_MULTI) || in is_multi_taskfile()
1124 (tf->command == ATA_CMD_READ_MULTI_EXT) || in is_multi_taskfile()
1125 (tf->command == ATA_CMD_WRITE_MULTI_EXT) || in is_multi_taskfile()
[all …]
/linux/tools/perf/util/
H A Dprobe-finder.c1276 static bool trace_event_finder_overlap(struct trace_event_finder *tf) in add_probe_trace_event()
1280 for (i = 0; i < tf->ntevs; i++) { in add_probe_trace_event()
1281 if (tf->pf.addr == tf->tevs[i].point.address) in add_probe_trace_event()
1290 struct trace_event_finder *tf = in add_probe_trace_event()
1302 if (trace_event_finder_overlap(tf)) in add_probe_trace_event()
1306 if (tf->ntevs == tf->max_tevs) { in add_probe_trace_event()
1308 tf->max_tevs); in add_probe_trace_event()
1311 tev = &tf in add_probe_trace_event()
1253 trace_event_finder_overlap(struct trace_event_finder * tf) trace_event_finder_overlap() argument
1267 struct trace_event_finder *tf = add_probe_trace_event() local
1390 struct trace_event_finder tf = { debuginfo__find_trace_events() local
[all...]
/linux/io_uring/
H A Depoll.c62 CLASS(fd, tf)(ie->fd); in io_epoll_ctl()
63 if (fd_empty(tf)) in io_epoll_ctl()
66 key.file = fd_file(tf); in io_epoll_ctl()

123