Home
last modified time | relevance | path

Searched refs:pio (Results 1 – 25 of 87) sorted by relevance

1234

/drivers/pinctrl/
Dpinctrl-at91.c153 enum at91_mux (*get_periph)(void __iomem *pio, unsigned mask);
154 void (*mux_A_periph)(void __iomem *pio, unsigned mask);
155 void (*mux_B_periph)(void __iomem *pio, unsigned mask);
156 void (*mux_C_periph)(void __iomem *pio, unsigned mask);
157 void (*mux_D_periph)(void __iomem *pio, unsigned mask);
158 bool (*get_deglitch)(void __iomem *pio, unsigned pin);
159 void (*set_deglitch)(void __iomem *pio, unsigned mask, bool is_on);
160 bool (*get_debounce)(void __iomem *pio, unsigned pin, u32 *div);
161 void (*set_debounce)(void __iomem *pio, unsigned mask, bool is_on, u32 div);
162 bool (*get_pulldown)(void __iomem *pio, unsigned pin);
[all …]
/drivers/net/wireless/b43legacy/
Dpio.c153 struct b43legacy_pio *pio = &dev->pio; in parse_cookie() local
159 queue = pio->queue0; in parse_cookie()
162 queue = pio->queue1; in parse_cookie()
165 queue = pio->queue2; in parse_cookie()
168 queue = pio->queue3; in parse_cookie()
404 struct b43legacy_pio *pio; in b43legacy_pio_free() local
408 pio = &dev->pio; in b43legacy_pio_free()
410 b43legacy_destroy_pioqueue(pio->queue3); in b43legacy_pio_free()
411 pio->queue3 = NULL; in b43legacy_pio_free()
412 b43legacy_destroy_pioqueue(pio->queue2); in b43legacy_pio_free()
[all …]
/drivers/net/wireless/b43/
Dpio.c61 struct b43_pio *pio = &dev->pio; in parse_cookie() local
67 q = pio->tx_queue_AC_BK; in parse_cookie()
70 q = pio->tx_queue_AC_BE; in parse_cookie()
73 q = pio->tx_queue_AC_VI; in parse_cookie()
76 q = pio->tx_queue_AC_VO; in parse_cookie()
79 q = pio->tx_queue_mcast; in parse_cookie()
222 #define destroy_queue_tx(pio, queue) do { \ argument
223 b43_destroy_pioqueue_tx((pio)->queue, __stringify(queue)); \
224 (pio)->queue = NULL; \
227 #define destroy_queue_rx(pio, queue) do { \ argument
[all …]
/drivers/mtd/nand/gpmi-nand/
Dgpmi-lib.c1124 u32 pio[3]; in gpmi_send_command() local
1127 pio[0] = BF_GPMI_CTRL0_COMMAND_MODE(BV_GPMI_CTRL0_COMMAND_MODE__WRITE) in gpmi_send_command()
1134 pio[1] = pio[2] = 0; in gpmi_send_command()
1136 (struct scatterlist *)pio, in gpmi_send_command()
1137 ARRAY_SIZE(pio), DMA_TRANS_NONE, 0); in gpmi_send_command()
1164 u32 pio[2]; in gpmi_send_data() local
1170 pio[0] = BF_GPMI_CTRL0_COMMAND_MODE(command_mode) in gpmi_send_data()
1176 pio[1] = 0; in gpmi_send_data()
1177 desc = dmaengine_prep_slave_sg(channel, (struct scatterlist *)pio, in gpmi_send_data()
1178 ARRAY_SIZE(pio), DMA_TRANS_NONE, 0); in gpmi_send_data()
[all …]
/drivers/ata/
Dpata_efar.c85 unsigned int pio = adev->pio_mode - XFER_PIO_0; in efar_set_piomode() local
105 if (pio > 1) in efar_set_piomode()
121 master_data |= (timings[pio][0] << 12) | in efar_set_piomode()
122 (timings[pio][1] << 8); in efar_set_piomode()
133 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << shift; in efar_set_piomode()
202 int pio = needed_pio[mwdma] - XFER_PIO_0; in efar_set_dmamode() local
219 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in efar_set_dmamode()
226 (timings[pio][0] << 12) | in efar_set_dmamode()
227 (timings[pio][1] << 8); in efar_set_dmamode()
Dpata_it8213.c76 unsigned int pio = adev->pio_mode - XFER_PIO_0; in it8213_set_piomode() local
94 if (pio > 1) in it8213_set_piomode()
108 master_data |= (timings[pio][0] << 12) | in it8213_set_piomode()
109 (timings[pio][1] << 8); in it8213_set_piomode()
119 slave_data |= (timings[pio][0] << 2) | timings[pio][1]; in it8213_set_piomode()
197 int pio = needed_pio[mwdma] - XFER_PIO_0; in it8213_set_dmamode() local
214 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in it8213_set_dmamode()
221 (timings[pio][0] << 12) | in it8213_set_dmamode()
222 (timings[pio][1] << 8); in it8213_set_dmamode()
Dpata_rdc.c103 unsigned int pio = adev->pio_mode - XFER_PIO_0; in rdc_set_piomode() local
121 if (pio >= 2) in rdc_set_piomode()
146 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) in rdc_set_piomode()
155 (timings[pio][0] << 12) | in rdc_set_piomode()
156 (timings[pio][1] << 8); in rdc_set_piomode()
251 int pio = needed_pio[mwdma] - XFER_PIO_0; in rdc_set_dmamode() local
268 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode()
275 (timings[pio][0] << 12) | in rdc_set_dmamode()
276 (timings[pio][1] << 8); in rdc_set_dmamode()
Dpata_artop.c98 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode() argument
108 pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); in artop6210_load_piomode()
152 static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6260_load_piomode() argument
162 pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); in artop6260_load_piomode()
205 unsigned int pio; in artop6210_set_dmamode() local
211 pio = 1; in artop6210_set_dmamode()
213 pio = 4; in artop6210_set_dmamode()
216 artop6210_load_piomode(ap, adev, pio); in artop6210_set_dmamode()
245 unsigned int pio = adev->pio_mode - XFER_PIO_0; in artop6260_set_dmamode() local
250 pio = 1; in artop6260_set_dmamode()
[all …]
Dpata_radisys.c41 unsigned int pio = adev->pio_mode - XFER_PIO_0; in radisys_set_piomode() local
60 if (pio > 0) in radisys_set_piomode()
71 idetm_data |= (timings[pio][0] << 12) | in radisys_set_piomode()
72 (timings[pio][1] << 8); in radisys_set_piomode()
116 int pio = needed_pio[mwdma] - XFER_PIO_0; in radisys_set_dmamode() local
130 idetm_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in radisys_set_dmamode()
Dpata_oldpiix.c65 unsigned int pio = adev->pio_mode - XFER_PIO_0; in oldpiix_set_piomode() local
84 if (pio > 1) in oldpiix_set_piomode()
106 idetm_data |= (timings[pio][0] << 12) | in oldpiix_set_piomode()
107 (timings[pio][1] << 8); in oldpiix_set_piomode()
149 int pio = needed_pio[mwdma] - XFER_PIO_0; in oldpiix_set_dmamode() local
174 idetm_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in oldpiix_set_dmamode()
Dpata_cs5520.c69 static void cs5520_set_timings(struct ata_port *ap, struct ata_device *adev, int pio) in cs5520_set_timings() argument
74 pio -= XFER_PIO_0; in cs5520_set_timings()
78 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_timings()
79 (cs5520_pio_clocks[pio].assert)); in cs5520_set_timings()
83 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_timings()
84 (cs5520_pio_clocks[pio].assert)); in cs5520_set_timings()
87 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_timings()
88 (cs5520_pio_clocks[pio].assert)); in cs5520_set_timings()
Dpata_opti.c110 int pio = adev->pio_mode - XFER_PIO_0; in opti_set_piomode() local
132 addr = addr_timing[clock][pio]; in opti_set_piomode()
142 opti_write_reg(ap, data_rec_timing[clock][pio], READ_REG); in opti_set_piomode()
143 opti_write_reg(ap, data_rec_timing[clock][pio], WRITE_REG); in opti_set_piomode()
Dpata_mpc52xx.c269 mpc52xx_ata_compute_pio_timings(struct mpc52xx_ata_priv *priv, int dev, int pio) in mpc52xx_ata_compute_pio_timings() argument
275 if ((pio < 0) || (pio > 4)) in mpc52xx_ata_compute_pio_timings()
278 t0 = CALC_CLKCYC(ipb_period, 1000 * ataspec_t0[pio]); in mpc52xx_ata_compute_pio_timings()
279 t1 = CALC_CLKCYC(ipb_period, 1000 * ataspec_t1[pio]); in mpc52xx_ata_compute_pio_timings()
280 t2_8 = CALC_CLKCYC(ipb_period, 1000 * ataspec_t2_8[pio]); in mpc52xx_ata_compute_pio_timings()
281 t2_16 = CALC_CLKCYC(ipb_period, 1000 * ataspec_t2_16[pio]); in mpc52xx_ata_compute_pio_timings()
282 t2i = CALC_CLKCYC(ipb_period, 1000 * ataspec_t2i[pio]); in mpc52xx_ata_compute_pio_timings()
283 t4 = CALC_CLKCYC(ipb_period, 1000 * ataspec_t4[pio]); in mpc52xx_ata_compute_pio_timings()
284 ta = CALC_CLKCYC(ipb_period, 1000 * ataspec_ta[pio]); in mpc52xx_ata_compute_pio_timings()
393 int pio, rv; in mpc52xx_ata_set_piomode() local
[all …]
/drivers/ide/
Dcs5520.c64 const u8 pio = drive->pio_mode - XFER_PIO_0; in cs5520_set_pio_mode() local
68 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_pio_mode()
69 (cs5520_pio_clocks[pio].assert)); in cs5520_set_pio_mode()
76 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_pio_mode()
77 (cs5520_pio_clocks[pio].assert)); in cs5520_set_pio_mode()
80 (cs5520_pio_clocks[pio].recovery << 4) | in cs5520_set_pio_mode()
81 (cs5520_pio_clocks[pio].assert)); in cs5520_set_pio_mode()
Dslc90e66.c31 const u8 pio = drive->pio_mode - XFER_PIO_0; in slc90e66_set_pio_mode() local
44 if (pio > 1) in slc90e66_set_pio_mode()
48 if (ide_pio_need_iordy(drive, pio)) in slc90e66_set_pio_mode()
53 if (pio > 1) { in slc90e66_set_pio_mode()
59 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << in slc90e66_set_pio_mode()
63 if (pio > 1) { in slc90e66_set_pio_mode()
67 master_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in slc90e66_set_pio_mode()
Dht6560b.c199 static u8 ht_pio2timings(ide_drive_t *drive, const u8 pio) in ht_pio2timings() argument
205 if (pio) { in ht_pio2timings()
207 struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); in ht_pio2timings()
209 cycle_time = ide_pio_cycle_time(drive, pio); in ht_pio2timings()
232 …printk("ht6560b: drive %s setting pio=%d recovery=%d (%dns) active=%d (%dns)\n", drive->name, pio,… in ht_pio2timings()
284 const u8 pio = drive->pio_mode - XFER_PIO_0; in ht6560b_set_pio_mode() local
287 switch (pio) { in ht6560b_set_pio_mode()
290 ht_set_prefetch(drive, pio & 1); in ht6560b_set_pio_mode()
294 timing = ht_pio2timings(drive, pio); in ht6560b_set_pio_mode()
304 printk("ht6560b: drive %s tuned to pio mode %#x timing=%#x\n", drive->name, pio, timing); in ht6560b_set_pio_mode()
Dit8213.c37 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8213_set_pio_mode() local
49 if (pio > 1) in it8213_set_pio_mode()
53 if (ide_pio_need_iordy(drive, pio)) in it8213_set_pio_mode()
58 if (pio > 1) in it8213_set_pio_mode()
62 slave_data = slave_data | (timings[pio][0] << 2) | timings[pio][1]; in it8213_set_pio_mode()
65 if (pio > 1) in it8213_set_pio_mode()
67 master_data = master_data | (timings[pio][0] << 12) | (timings[pio][1] << 8); in it8213_set_pio_mode()
Dsl82c105.c42 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings() argument
44 struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); in get_pio_timings()
49 cmd_off = (ide_pio_cycle_time(drive, pio) - 30 * cmd_on + 29) / 30; in get_pio_timings()
57 if (ide_pio_need_iordy(drive, pio)) in get_pio_timings()
72 const u8 pio = drive->pio_mode - XFER_PIO_0; in sl82c105_set_pio_mode() local
74 drv_ctrl = get_pio_timings(drive, pio); in sl82c105_set_pio_mode()
88 ide_xfer_verbose(pio + XFER_PIO_0), in sl82c105_set_pio_mode()
89 ide_pio_cycle_time(drive, pio), drv_ctrl); in sl82c105_set_pio_mode()
Dide-xfer-mode.c110 int ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) in ide_pio_need_iordy() argument
116 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy()
118 return ata_id_pio_need_iordy(drive->id, pio); in ide_pio_need_iordy()
186 u8 host_pio, pio; in ide_set_pio() local
196 pio = ide_get_best_pio_mode(drive, req_pio, host_pio); in ide_set_pio()
205 req_pio == 255 ? "(auto-tune)" : "", pio); in ide_set_pio()
207 (void)ide_set_pio_mode(drive, XFER_PIO_0 + pio); in ide_set_pio()
Dpiix.c79 const u8 pio = drive->pio_mode - XFER_PIO_0; in piix_set_pio_mode() local
97 if (pio > 1) in piix_set_pio_mode()
101 if (ide_pio_need_iordy(drive, pio)) in piix_set_pio_mode()
106 if (pio > 1) { in piix_set_pio_mode()
112 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << in piix_set_pio_mode()
116 if (pio > 1) { in piix_set_pio_mode()
120 master_data |= (timings[pio][0] << 12) | (timings[pio][1] << 8); in piix_set_pio_mode()
Dali14xx.c119 const u8 pio = drive->pio_mode - XFER_PIO_0; in ali14xx_set_pio_mode() local
120 struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); in ali14xx_set_pio_mode()
123 time1 = ide_pio_cycle_time(drive, pio); in ali14xx_set_pio_mode()
127 if (pio < 3) { in ali14xx_set_pio_mode()
132 drive->name, pio, time1, time2, param1, param2, param3, param4); in ali14xx_set_pio_mode()
Dcs5536.c151 const u8 pio = drive->pio_mode - XFER_PIO_0; in cs5536_set_pio_mode() local
152 u8 cmd_pio = pio; in cs5536_set_pio_mode()
155 cmd_pio = min_t(u8, pio, pair->pio_mode - XFER_PIO_0); in cs5536_set_pio_mode()
158 timings |= drv_timings[pio]; in cs5536_set_pio_mode()
161 cs5536_program_dtc(drive, drv_timings[pio]); in cs5536_set_pio_mode()
166 cast |= addr_timings[pio] << cshift; in cs5536_set_pio_mode()
Dumc8672.c111 const u8 pio = drive->pio_mode - XFER_PIO_0; in umc_set_pio_mode() local
114 drive->name, pio, pio_to_umc[pio]); in umc_set_pio_mode()
120 current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio]; in umc_set_pio_mode()
Dcmd640.c579 const u8 pio = drive->pio_mode - XFER_PIO_0; in cmd640_set_pio_mode() local
582 switch (pio) { in cmd640_set_pio_mode()
586 if (pio & 1) in cmd640_set_pio_mode()
590 drive->name, (pio & 1) ? "en" : "dis"); in cmd640_set_pio_mode()
594 set_prefetch_mode(drive, index, pio & 1); in cmd640_set_pio_mode()
596 drive->name, (pio & 1) ? "en" : "dis"); in cmd640_set_pio_mode()
600 cycle_time = ide_pio_cycle_time(drive, pio); in cmd640_set_pio_mode()
601 cmd640_set_mode(drive, index, pio, cycle_time); in cmd640_set_pio_mode()
604 drive->name, pio, cycle_time); in cmd640_set_pio_mode()
/drivers/mmc/host/
Dau1xmmc.c110 } pio; member
248 host->pio.index = 0; in au1xmmc_finish_request()
249 host->pio.offset = 0; in au1xmmc_finish_request()
250 host->pio.len = 0; in au1xmmc_finish_request()
377 (data->blocks * data->blksz) - host->pio.len; in au1xmmc_data_complete()
407 sg = &data->sg[host->pio.index]; in au1xmmc_send_pio()
408 sg_ptr = sg_virt(sg) + host->pio.offset; in au1xmmc_send_pio()
411 sg_len = data->sg[host->pio.index].length - host->pio.offset; in au1xmmc_send_pio()
414 max = (sg_len > host->pio.len) ? host->pio.len : sg_len; in au1xmmc_send_pio()
430 host->pio.len -= count; in au1xmmc_send_pio()
[all …]

1234