Home
last modified time | relevance | path

Searched refs:ctlr (Results 1 – 25 of 82) sorted by relevance

1234

/linux-6.3-rc2/drivers/hid/
A Dhid-nintendo.c1241 queue_work(ctlr->rumble_queue, &ctlr->rumble_worker); in joycon_parse_report()
1400 ctlr->rumble_data[ctlr->rumble_queue_tail], in joycon_send_rumble_data()
1505 ctlr->rumble_ll_freq = clamp(ctlr->rumble_ll_freq, in joycon_clamp_rumble_freqs()
1508 ctlr->rumble_lh_freq = clamp(ctlr->rumble_lh_freq, in joycon_clamp_rumble_freqs()
1511 ctlr->rumble_rl_freq = clamp(ctlr->rumble_rl_freq, in joycon_clamp_rumble_freqs()
1514 ctlr->rumble_rh_freq = clamp(ctlr->rumble_rh_freq, in joycon_clamp_rumble_freqs()
1557 queue_work(ctlr->rumble_queue, &ctlr->rumble_worker); in joycon_set_rumble()
1642 ctlr->input->uniq = ctlr->mac_addr_str; in joycon_input_create()
1645 input_set_drvdata(ctlr->input, ctlr); in joycon_input_create()
1722 ctlr->imu_input->uniq = ctlr->mac_addr_str; in joycon_input_create()
[all …]
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-hisi.c240 while (ctlr->msg_rx_idx < ctlr->msg_num) { in hisi_i2c_read_rx_fifo()
241 cur_msg = ctlr->msgs + ctlr->msg_rx_idx; in hisi_i2c_read_rx_fifo()
274 while (ctlr->msg_tx_idx < ctlr->msg_num) { in hisi_i2c_xfer_msg()
275 cur_msg = ctlr->msgs + ctlr->msg_tx_idx; in hisi_i2c_xfer_msg()
276 last_msg = (ctlr->msg_tx_idx == ctlr->msg_num - 1); in hisi_i2c_xfer_msg()
279 if (ctlr->msg_tx_idx && !ctlr->buf_tx_idx) in hisi_i2c_xfer_msg()
389 i2c_parse_fw_timings(ctlr->dev, &ctlr->t, true); in hisi_i2c_configure_bus()
390 ctlr->spk_len = NSEC_TO_CYCLES(ctlr->t.digital_filter_width_ns, ctlr->clk_rate_khz); in hisi_i2c_configure_bus()
421 writel(ctlr->spk_len, ctlr->iobase + HISI_I2C_FS_SPK_LEN); in hisi_i2c_configure_bus()
437 ctlr = devm_kzalloc(dev, sizeof(*ctlr), GFP_KERNEL); in hisi_i2c_probe()
[all …]
/linux-6.3-rc2/drivers/spi/
A Dspi.c1154 if (!ctlr->can_dma(ctlr, msg->spi, xfer)) in __spi_map_msg()
1605 ctlr->handle_err(ctlr, msg); in spi_transfer_one_message()
1682 ret = ctlr->prepare_message(ctlr, msg); in __spi_pump_transfer_message()
2074 if (ctlr->running || ctlr->busy) { in spi_start_queue()
2588 lookup->ctlr = ctlr; in acpi_spi_add_resource()
2599 int cs = ctlr->fw_translate_cs(ctlr, in acpi_spi_add_resource()
2658 lookup.ctlr = ctlr; in acpi_spi_device_alloc()
2795 return ctlr->slave_abort(ctlr); in spi_slave_abort()
2806 return ctlr->target_abort(ctlr); in spi_target_abort()
3061 ctlr->max_native_cs && ctlr->unused_native_cs >= ctlr->max_native_cs) { in spi_get_gpio_descs()
[all …]
A Dspi-bcm2835.c863 if (ctlr->dma_tx) { in bcm2835_dma_release()
876 ctlr->dma_tx = NULL; in bcm2835_dma_release()
879 if (ctlr->dma_rx) { in bcm2835_dma_release()
1103 if (ctlr->can_dma && bcm2835_spi_can_dma(ctlr, spi, tfr)) in bcm2835_spi_transfer_one()
1118 if (ctlr->can_dma) { in bcm2835_spi_prepare_message()
1145 if (ctlr->dma_tx) { in bcm2835_spi_handle_err()
1149 if (ctlr->dma_rx) { in bcm2835_spi_handle_err()
1188 if (!ctlr->dma_rx) in bcm2835_spi_setup_dma()
1258 if (ctlr->dma_rx) { in bcm2835_spi_setup()
1331 if (!ctlr) in bcm2835_spi_probe()
[all …]
A Dspi-rockchip.c354 ctlr->slave_abort(ctlr); in rockchip_spi_isr()
467 ctlr->dma_rx, in rockchip_spi_prepare_dma()
489 ctlr->dma_tx, in rockchip_spi_prepare_dma()
625 status = dmaengine_tx_status(ctlr->dma_rx, ctlr->dma_rx->cookie, &state); in rockchip_spi_slave_abort()
696 use_dma = ctlr->can_dma ? ctlr->can_dma(ctlr, spi, xfer) : false; in rockchip_spi_transfer_one()
769 if (!ctlr) in rockchip_spi_probe()
904 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe()
933 if (ctlr->dma_rx) in rockchip_spi_probe()
936 if (ctlr->dma_tx) in rockchip_spi_probe()
964 if (ctlr->dma_tx) in rockchip_spi_remove()
[all …]
A Dspi-ingenic.c160 desc->callback_param = ctlr; in spi_ingenic_prepare_dma()
179 rx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_rx, in spi_ingenic_dma_tx()
184 tx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_tx, in spi_ingenic_dma_tx()
245 bool can_dma = ctlr->can_dma && ctlr->can_dma(ctlr, spi, xfer); in spi_ingenic_transfer_one()
350 if (!ctlr->dma_tx) in spi_ingenic_request_dma()
355 if (!ctlr->dma_rx) in spi_ingenic_request_dma()
367 if (ctlr->dma_tx) in spi_ingenic_release_dma()
369 if (ctlr->dma_rx) in spi_ingenic_release_dma()
384 struct spi_controller *ctlr; in spi_ingenic_probe() local
396 if (!ctlr) { in spi_ingenic_probe()
[all …]
A Dspi-mux.c90 struct spi_message *m = ctlr->cur_msg; in spi_mux_complete_cb()
95 spi_finalize_current_message(ctlr); in spi_mux_complete_cb()
128 struct spi_controller *ctlr; in spi_mux_probe() local
133 if (!ctlr) in spi_mux_probe()
136 spi_set_drvdata(spi, ctlr); in spi_mux_probe()
158 ctlr->flags = spi->controller->flags; in spi_mux_probe()
160 ctlr->setup = spi_mux_setup; in spi_mux_probe()
162 ctlr->bus_num = -1; in spi_mux_probe()
163 ctlr->dev.of_node = spi->dev.of_node; in spi_mux_probe()
164 ctlr->must_async = true; in spi_mux_probe()
[all …]
A Dspi-mem.c232 if (ctlr->mem_ops && ctlr->mem_ops->supports_op) in spi_mem_internal_supports_op()
270 spi_flush_queue(ctlr); in spi_mem_access_start()
328 if (ctlr->mem_ops && ctlr->mem_ops->exec_op && !mem->spi->cs_gpiod) { in spi_mem_exec_op()
460 if (ctlr->mem_ops && ctlr->mem_ops->adjust_op_size) in spi_mem_adjust_op_size()
463 if (!ctlr->mem_ops || !ctlr->mem_ops->exec_op) { in spi_mem_adjust_op_size()
556 if (ctlr->mem_ops && ctlr->mem_ops->dirmap_create) in spi_mem_dirmap_create()
587 if (!desc->nodirmap && ctlr->mem_ops && ctlr->mem_ops->dirmap_destroy) in spi_mem_dirmap_destroy()
693 } else if (ctlr->mem_ops && ctlr->mem_ops->dirmap_read) { in spi_mem_dirmap_read()
739 } else if (ctlr->mem_ops && ctlr->mem_ops->dirmap_write) { in spi_mem_dirmap_write()
811 if (ctlr->mem_ops && ctlr->mem_ops->poll_status && !mem->spi->cs_gpiod) { in spi_mem_poll_status()
[all …]
A Dspi-at91-usart.c137 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma()
138 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma()
150 if (IS_ERR(ctlr->dma_rx)) { in at91_usart_spi_configure_dma()
171 dev_err(&ctlr->dev, in at91_usart_spi_configure_dma()
179 dev_err(&ctlr->dev, in at91_usart_spi_configure_dma()
193 ctlr->dma_tx = NULL; in at91_usart_spi_configure_dma()
194 ctlr->dma_rx = NULL; in at91_usart_spi_configure_dma()
202 if (ctlr->dma_rx) in at91_usart_spi_release_dma()
204 if (ctlr->dma_tx) in at91_usart_spi_release_dma()
210 if (ctlr->dma_rx) in at91_usart_spi_stop_dma()
[all …]
A Dspi-sunplus-sp7021.c79 struct spi_controller *ctlr; member
312 sp7021_prep_transfer(ctlr, spi); in sp7021_spi_master_transfer_one()
406 struct spi_controller *ctlr; in sp7021_spi_controller_probe() local
420 if (!ctlr) in sp7021_spi_controller_probe()
423 ctlr->bus_num = pdev->id; in sp7021_spi_controller_probe()
425 ctlr->auto_runtime_pm = true; in sp7021_spi_controller_probe()
433 ctlr->min_speed_hz = 40000; in sp7021_spi_controller_probe()
434 ctlr->max_speed_hz = 25000000; in sp7021_spi_controller_probe()
439 platform_set_drvdata(pdev, ctlr); in sp7021_spi_controller_probe()
442 pspim->ctlr = ctlr; in sp7021_spi_controller_probe()
[all …]
A Dspi-slave-mt27xx.c386 struct spi_controller *ctlr; in mtk_spi_slave_probe() local
392 if (!ctlr) { in mtk_spi_slave_probe()
397 ctlr->auto_runtime_pm = true; in mtk_spi_slave_probe()
400 ctlr->mode_bits |= SPI_LSB_FIRST; in mtk_spi_slave_probe()
404 ctlr->setup = mtk_spi_slave_setup; in mtk_spi_slave_probe()
405 ctlr->slave_abort = mtk_slave_abort; in mtk_spi_slave_probe()
417 ctlr->flags = SPI_MASTER_MUST_RX; in mtk_spi_slave_probe()
419 platform_set_drvdata(pdev, ctlr); in mtk_spi_slave_probe()
472 spi_controller_put(ctlr); in mtk_spi_slave_probe()
491 ret = spi_controller_suspend(ctlr); in mtk_spi_slave_suspend()
[all …]
A Dspi-ar934x.c44 struct spi_controller *ctlr; member
153 spi_finalize_current_message(ctlr); in ar934x_spi_transfer_one_message()
166 struct spi_controller *ctlr; in ar934x_spi_probe() local
187 if (!ctlr) { in ar934x_spi_probe()
198 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe()
199 ctlr->setup = ar934x_spi_setup; in ar934x_spi_probe()
204 ctlr->num_chipselect = 3; in ar934x_spi_probe()
206 dev_set_drvdata(&pdev->dev, ctlr); in ar934x_spi_probe()
212 sp->ctlr = ctlr; in ar934x_spi_probe()
225 struct spi_controller *ctlr; in ar934x_spi_remove() local
[all …]
A Dspi-rspi.c1151 if (!ctlr->dma_tx) in rspi_request_dma()
1156 if (!ctlr->dma_rx) { in rspi_request_dma()
1158 ctlr->dma_tx = NULL; in rspi_request_dma()
1169 if (ctlr->dma_tx) in rspi_release_dma()
1171 if (ctlr->dma_rx) in rspi_release_dma()
1300 if (ctlr == NULL) in rspi_probe()
1320 rspi->ctlr = ctlr; in rspi_probe()
1342 ctlr->bus_num = pdev->id; in rspi_probe()
1343 ctlr->setup = rspi_setup; in rspi_probe()
1353 ctlr->flags = ops->flags; in rspi_probe()
[all …]
A Dspi-rpc-if.c133 struct spi_controller *ctlr; in rpcif_spi_probe() local
138 if (!ctlr) in rpcif_spi_probe()
141 rpc = spi_controller_get_devdata(ctlr); in rpcif_spi_probe()
146 platform_set_drvdata(pdev, ctlr); in rpcif_spi_probe()
148 ctlr->dev.of_node = parent->of_node; in rpcif_spi_probe()
152 ctlr->num_chipselect = 1; in rpcif_spi_probe()
153 ctlr->mem_ops = &rpcif_spi_mem_ops; in rpcif_spi_probe()
163 error = spi_register_controller(ctlr); in rpcif_spi_probe()
181 spi_unregister_controller(ctlr); in rpcif_spi_remove()
191 return spi_controller_suspend(ctlr); in rpcif_spi_suspend()
[all …]
A Dspi-sh-hspi.c38 struct spi_controller *ctlr; member
207 spi_finalize_current_message(ctlr); in hspi_transfer_one_message()
215 struct spi_controller *ctlr; in hspi_probe() local
228 if (!ctlr) in hspi_probe()
238 hspi = spi_controller_get_devdata(ctlr); in hspi_probe()
242 hspi->ctlr = ctlr; in hspi_probe()
254 ctlr->bus_num = pdev->id; in hspi_probe()
255 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in hspi_probe()
256 ctlr->dev.of_node = pdev->dev.of_node; in hspi_probe()
257 ctlr->auto_runtime_pm = true; in hspi_probe()
[all …]
A Dspi-sh-msiof.c42 struct spi_controller *ctlr; member
1195 ctlr = p->ctlr; in sh_msiof_request_dma()
1198 if (!ctlr->dma_tx) in sh_msiof_request_dma()
1203 if (!ctlr->dma_rx) in sh_msiof_request_dma()
1239 ctlr->dma_tx = NULL; in sh_msiof_request_dma()
1245 struct spi_controller *ctlr = p->ctlr; in sh_msiof_release_dma() local
1247 if (!ctlr->dma_tx) in sh_msiof_release_dma()
1289 if (ctlr == NULL) in sh_msiof_spi_probe()
1295 p->ctlr = ctlr; in sh_msiof_spi_probe()
1346 ctlr->bus_num = pdev->id; in sh_msiof_spi_probe()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Ddavinci_cpdma.c357 struct cpdma_ctlr *ctlr = chan->ctlr; in cpdma_chan_set_chan_shaper() local
377 struct cpdma_ctlr *ctlr = chan->ctlr; in cpdma_chan_on() local
409 struct cpdma_ctlr *ctlr = ch->ctlr; in cpdma_chan_fit_rate() local
528 ctlr->num_rx_desc = ctlr->pool->num_desc - ctlr->num_tx_desc; in cpdma_ctlr_create()
786 struct cpdma_ctlr *ctlr = ch->ctlr; in cpdma_chan_set_weight() local
838 ctlr = ch->ctlr; in cpdma_chan_set_rate()
899 chan->ctlr = ctlr; in cpdma_chan_create()
954 ctlr = chan->ctlr; in cpdma_chan_destroy()
1181 struct cpdma_ctlr *ctlr = chan->ctlr; in cpdma_check_free_tx_desc() local
1434 ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; in cpdma_set_num_rx_descs()
[all …]
A Ddavinci_cpdma.h67 int cpdma_ctlr_destroy(struct cpdma_ctlr *ctlr);
68 int cpdma_ctlr_start(struct cpdma_ctlr *ctlr);
69 int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr);
90 int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable);
91 void cpdma_ctlr_eoi(struct cpdma_ctlr *ctlr, u32 value);
93 u32 cpdma_ctrl_rxchs_state(struct cpdma_ctlr *ctlr);
94 u32 cpdma_ctrl_txchs_state(struct cpdma_ctlr *ctlr);
99 u32 cpdma_chan_get_min_rate(struct cpdma_ctlr *ctlr);
116 int cpdma_control_get(struct cpdma_ctlr *ctlr, int control);
118 int cpdma_get_num_rx_descs(struct cpdma_ctlr *ctlr);
[all …]
/linux-6.3-rc2/drivers/scsi/fcoe/
A Dfcoe_sysfs.c143 ctlr->f->get_fcoe_ctlr_##field(ctlr); \
307 ctlr->f->set_fcoe_ctlr_mode(ctlr); in store_ctlr_mode()
351 rc = ctlr->f->set_fcoe_ctlr_enabled(ctlr); in store_ctlr_enabled()
635 kfree(ctlr); in fcoe_ctlr_device_release()
802 if (!ctlr) in fcoe_ctlr_device_add()
806 ctlr->f = f; in fcoe_ctlr_device_add()
816 snprintf(ctlr->work_q_name, sizeof(ctlr->work_q_name), in fcoe_ctlr_device_add()
820 if (!ctlr->work_q) in fcoe_ctlr_device_add()
831 dev_set_name(&ctlr->dev, "ctlr_%d", ctlr->id); in fcoe_ctlr_device_add()
840 return ctlr; in fcoe_ctlr_device_add()
[all …]
A Dfcoe.c383 struct fcoe_ctlr *ctlr; in fcoe_interface_create() local
405 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
513 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
536 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local
705 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
1339 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1348 lport = ctlr->lp; in fcoe_rcv()
1563 if (ctlr->map_dest) in fcoe_xmit()
1848 lport = ctlr->lp; in fcoe_device_notification()
2066 lport = ctlr->lp; in fcoe_destroy()
[all …]
/linux-6.3-rc2/drivers/mtd/hyperbus/
A Dhyperbus-core.c23 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_read16() local
35 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_write16() local
37 ctlr->ops->write16(hbdev, addr, d.x[0]); in hyperbus_write16()
44 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_copy_from() local
53 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_copy_to() local
61 struct hyperbus_ctlr *ctlr; in hyperbus_register_device() local
67 if (!hbdev || !hbdev->np || !hbdev->ctlr || !hbdev->ctlr->dev) { in hyperbus_register_device()
73 ctlr = hbdev->ctlr; in hyperbus_register_device()
81 dev = ctlr->dev; in hyperbus_register_device()
88 ops = ctlr->ops; in hyperbus_register_device()
[all …]
/linux-6.3-rc2/drivers/scsi/device_handler/
A Dscsi_dh_rdac.c323 kfree(ctlr); in release_controller()
339 ctlr = kmalloc(sizeof(*ctlr), GFP_ATOMIC); in get_controller()
340 if (!ctlr) in get_controller()
359 return ctlr; in get_controller()
453 if (!h->ctlr) in initialize_controller()
520 (char *) h->ctlr->array_name, h->ctlr->index, in mode_select_handle_sense()
558 (char *) h->ctlr->array_name, h->ctlr->index, in send_mode_select()
573 (char *) h->ctlr->array_name, h->ctlr->index); in send_mode_select()
601 ctlr = qdata->h->ctlr; in queue_mode_select()
668 (char *) h->ctlr->array_name, h->ctlr->index, in rdac_check_sense()
[all …]
/linux-6.3-rc2/include/linux/spi/
A Dspi.h733 return dev_get_drvdata(&ctlr->dev); in spi_controller_get_devdata()
739 dev_set_drvdata(&ctlr->dev, data); in spi_controller_set_devdata()
744 if (!ctlr || !get_device(&ctlr->dev)) in spi_controller_get()
746 return ctlr; in spi_controller_get()
751 if (ctlr) in spi_controller_put()
752 put_device(&ctlr->dev); in spi_controller_put()
852 struct spi_controller *ctlr);
1215 if (!ctlr->max_message_size) in spi_max_message_size()
1217 return ctlr->max_message_size(spi); in spi_max_message_size()
1227 if (ctlr->max_transfer_size) in spi_max_transfer_size()
[all …]
/linux-6.3-rc2/drivers/net/can/rcar/
A Drcar_can.c451 ctlr = readw(&priv->regs->ctlr); in rcar_can_start()
453 writew(ctlr, &priv->regs->ctlr); in rcar_can_start()
456 writew(ctlr, &priv->regs->ctlr); in rcar_can_start()
467 writew(ctlr, &priv->regs->ctlr); in rcar_can_start()
555 ctlr = readw(&priv->regs->ctlr); in rcar_can_stop()
557 writew(ctlr, &priv->regs->ctlr); in rcar_can_stop()
568 writew(ctlr, &priv->regs->ctlr); in rcar_can_stop()
850 ctlr = readw(&priv->regs->ctlr); in rcar_can_suspend()
852 writew(ctlr, &priv->regs->ctlr); in rcar_can_suspend()
854 writew(ctlr, &priv->regs->ctlr); in rcar_can_suspend()
[all …]
/linux-6.3-rc2/drivers/scsi/bnx2fc/
A Dbnx2fc_fcoe.c374 if (ctlr->map_dest) in bnx2fc_xmit()
437 lport = ctlr->lp; in bnx2fc_rcv()
582 if (ctlr->state) { in bnx2fc_recv_frame()
920 lport = ctlr->lp; in bnx2fc_indicate_netevent()
1842 lport = ctlr->lp; in bnx2fc_ulp_start()
1869 lport = ctlr->lp; in bnx2fc_stop()
2000 lport = ctlr->lp; in bnx2fc_start_disc()
2080 if (!ctlr->lp) { in __bnx2fc_disable()
2178 if (!ctlr->lp) { in __bnx2fc_enable()
2189 lport = ctlr->lp; in __bnx2fc_enable()
[all …]

Completed in 95 milliseconds

1234