/linux/drivers/hid/ |
A D | hid-nintendo.c | 1236 queue_work(ctlr->rumble_queue, &ctlr->rumble_worker); in joycon_parse_report() 1395 ctlr->rumble_data[ctlr->rumble_queue_tail], in joycon_send_rumble_data() 1500 ctlr->rumble_ll_freq = clamp(ctlr->rumble_ll_freq, in joycon_clamp_rumble_freqs() 1503 ctlr->rumble_lh_freq = clamp(ctlr->rumble_lh_freq, in joycon_clamp_rumble_freqs() 1506 ctlr->rumble_rl_freq = clamp(ctlr->rumble_rl_freq, in joycon_clamp_rumble_freqs() 1509 ctlr->rumble_rh_freq = clamp(ctlr->rumble_rh_freq, in joycon_clamp_rumble_freqs() 1553 queue_work(ctlr->rumble_queue, &ctlr->rumble_worker); in joycon_set_rumble() 1635 ctlr->input->uniq = ctlr->mac_addr_str; in joycon_input_create() 1637 input_set_drvdata(ctlr->input, ctlr); in joycon_input_create() 1714 ctlr->imu_input->uniq = ctlr->mac_addr_str; in joycon_input_create() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-hisi.c | 239 while (ctlr->msg_rx_idx < ctlr->msg_num) { in hisi_i2c_read_rx_fifo() 240 cur_msg = ctlr->msgs + ctlr->msg_rx_idx; in hisi_i2c_read_rx_fifo() 273 while (ctlr->msg_tx_idx < ctlr->msg_num) { in hisi_i2c_xfer_msg() 274 cur_msg = ctlr->msgs + ctlr->msg_tx_idx; in hisi_i2c_xfer_msg() 275 last_msg = (ctlr->msg_tx_idx == ctlr->msg_num - 1); in hisi_i2c_xfer_msg() 278 if (ctlr->msg_tx_idx && !ctlr->buf_tx_idx) in hisi_i2c_xfer_msg() 388 i2c_parse_fw_timings(ctlr->dev, &ctlr->t, true); in hisi_i2c_configure_bus() 389 ctlr->spk_len = NSEC_TO_CYCLES(ctlr->t.digital_filter_width_ns, ctlr->clk_rate_khz); in hisi_i2c_configure_bus() 420 writel(ctlr->spk_len, ctlr->iobase + HISI_I2C_FS_SPK_LEN); in hisi_i2c_configure_bus() 436 ctlr = devm_kzalloc(dev, sizeof(*ctlr), GFP_KERNEL); in hisi_i2c_probe() [all …]
|
/linux/drivers/spi/ |
A D | spi.c | 1117 if (!ctlr->can_dma(ctlr, msg->spi, xfer)) in __spi_map_msg() 1150 if (!ctlr->cur_msg_mapped || !ctlr->can_dma) in __spi_unmap_msg() 1164 if (!ctlr->can_dma(ctlr, msg->spi, xfer)) in __spi_unmap_msg() 1510 ctlr->handle_err(ctlr, msg); in spi_transfer_one_message() 1585 if (!ctlr->dummy_rx && !ctlr->dummy_tx && in __spi_pump_messages() 1667 ret = ctlr->prepare_message(ctlr, msg); in __spi_pump_messages() 1944 if (ctlr->running || ctlr->busy) { in spi_start_queue() 2384 int cs = ctlr->fw_translate_cs(ctlr, in acpi_spi_add_resource() 2427 lookup.ctlr = ctlr; in acpi_register_spi_device() 2542 return ctlr->slave_abort(ctlr); in spi_slave_abort() [all …]
|
A D | spi-rockchip.c | 439 ctlr->dma_rx, in rockchip_spi_prepare_dma() 461 ctlr->dma_tx, in rockchip_spi_prepare_dma() 624 use_dma = ctlr->can_dma ? ctlr->can_dma(ctlr, spi, xfer) : false; in rockchip_spi_transfer_one() 669 if (!ctlr) in rockchip_spi_probe() 789 ctlr->dma_tx = NULL; in rockchip_spi_probe() 799 ctlr->dma_rx = NULL; in rockchip_spi_probe() 802 if (ctlr->dma_tx && ctlr->dma_rx) { in rockchip_spi_probe() 825 if (ctlr->dma_rx) in rockchip_spi_probe() 828 if (ctlr->dma_tx) in rockchip_spi_probe() 856 if (ctlr->dma_tx) in rockchip_spi_remove() [all …]
|
A D | spi-bcm2835.c | 859 if (ctlr->dma_tx) { in bcm2835_dma_release() 872 ctlr->dma_tx = NULL; in bcm2835_dma_release() 875 if (ctlr->dma_rx) { in bcm2835_dma_release() 878 ctlr->dma_rx = NULL; in bcm2835_dma_release() 904 ctlr->dma_tx = NULL; in bcm2835_dma_init() 1099 if (ctlr->can_dma && bcm2835_spi_can_dma(ctlr, spi, tfr)) in bcm2835_spi_transfer_one() 1114 if (ctlr->can_dma) { in bcm2835_spi_prepare_message() 1180 if (!ctlr->dma_rx) in bcm2835_spi_setup_dma() 1250 if (ctlr->dma_rx) { in bcm2835_spi_setup() 1323 if (!ctlr) in bcm2835_spi_probe() [all …]
|
A D | spi-ingenic.c | 156 desc->callback_param = ctlr; in spi_ingenic_prepare_dma() 175 rx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_rx, in spi_ingenic_dma_tx() 180 tx_desc = spi_ingenic_prepare_dma(ctlr, ctlr->dma_tx, in spi_ingenic_dma_tx() 241 bool can_dma = ctlr->can_dma && ctlr->can_dma(ctlr, spi, xfer); in spi_ingenic_transfer_one() 346 if (!ctlr->dma_tx) in spi_ingenic_request_dma() 351 if (!ctlr->dma_rx) in spi_ingenic_request_dma() 363 if (ctlr->dma_tx) in spi_ingenic_release_dma() 365 if (ctlr->dma_rx) in spi_ingenic_release_dma() 392 if (!ctlr) { in spi_ingenic_probe() 430 ctlr->min_speed_hz = 7200; in spi_ingenic_probe() [all …]
|
A D | spi-mem.c | 49 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data() 218 if (ctlr->mem_ops && ctlr->mem_ops->supports_op) in spi_mem_internal_supports_op() 256 spi_flush_queue(ctlr); in spi_mem_access_start() 447 if (ctlr->mem_ops && ctlr->mem_ops->adjust_op_size) in spi_mem_adjust_op_size() 450 if (!ctlr->mem_ops || !ctlr->mem_ops->exec_op) { in spi_mem_adjust_op_size() 543 if (ctlr->mem_ops && ctlr->mem_ops->dirmap_create) in spi_mem_dirmap_create() 574 if (!desc->nodirmap && ctlr->mem_ops && ctlr->mem_ops->dirmap_destroy) in spi_mem_dirmap_destroy() 680 } else if (ctlr->mem_ops && ctlr->mem_ops->dirmap_read) { in spi_mem_dirmap_read() 726 } else if (ctlr->mem_ops && ctlr->mem_ops->dirmap_write) { in spi_mem_dirmap_write() 798 if (ctlr->mem_ops && ctlr->mem_ops->poll_status) { in spi_mem_poll_status() [all …]
|
A D | spi-mux.c | 90 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() 137 priv = spi_controller_get_devdata(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() [all …]
|
A D | spi-at91-usart.c | 137 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 D | spi-slave-mt27xx.c | 386 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 D | spi-rspi.c | 1149 if (!ctlr->dma_tx) in rspi_request_dma() 1154 if (!ctlr->dma_rx) { in rspi_request_dma() 1156 ctlr->dma_tx = NULL; in rspi_request_dma() 1167 if (ctlr->dma_tx) in rspi_release_dma() 1169 if (ctlr->dma_rx) in rspi_release_dma() 1274 if (ctlr == NULL) in rspi_probe() 1294 rspi->ctlr = ctlr; in rspi_probe() 1316 ctlr->bus_num = pdev->id; in rspi_probe() 1317 ctlr->setup = rspi_setup; in rspi_probe() 1327 ctlr->flags = ops->flags; in rspi_probe() [all …]
|
A D | spi-rpc-if.c | 133 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() 161 error = spi_register_controller(ctlr); in rpcif_spi_probe() 175 spi_unregister_controller(ctlr); in rpcif_spi_remove() 185 return spi_controller_suspend(ctlr); in rpcif_spi_suspend() [all …]
|
A D | spi-ar934x.c | 44 struct spi_controller *ctlr; member 159 struct spi_controller *ctlr; in ar934x_spi_probe() local 180 if (!ctlr) { in ar934x_spi_probe() 191 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe() 192 ctlr->setup = ar934x_spi_setup; in ar934x_spi_probe() 196 ctlr->num_chipselect = 3; in ar934x_spi_probe() 198 dev_set_drvdata(&pdev->dev, ctlr); in ar934x_spi_probe() 204 sp->ctlr = ctlr; in ar934x_spi_probe() 217 struct spi_controller *ctlr; in ar934x_spi_remove() local 220 ctlr = dev_get_drvdata(&pdev->dev); in ar934x_spi_remove() [all …]
|
A D | spi-sh-msiof.c | 42 struct spi_controller *ctlr; member 1194 ctlr = p->ctlr; in sh_msiof_request_dma() 1197 if (!ctlr->dma_tx) in sh_msiof_request_dma() 1202 if (!ctlr->dma_rx) in sh_msiof_request_dma() 1238 ctlr->dma_tx = NULL; in sh_msiof_request_dma() 1244 struct spi_controller *ctlr = p->ctlr; in sh_msiof_release_dma() local 1246 if (!ctlr->dma_tx) in sh_msiof_release_dma() 1288 if (ctlr == NULL) in sh_msiof_spi_probe() 1294 p->ctlr = ctlr; in sh_msiof_spi_probe() 1345 ctlr->bus_num = pdev->id; in sh_msiof_spi_probe() [all …]
|
A D | spi-sh-hspi.c | 38 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 …]
|
/linux/drivers/net/ethernet/ti/ |
A D | davinci_cpdma.c | 357 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 D | davinci_cpdma.h | 67 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/drivers/scsi/fcoe/ |
A D | fcoe_sysfs.c | 143 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() 836 return ctlr; in fcoe_ctlr_device_add() [all …]
|
A D | fcoe.c | 382 struct fcoe_ctlr *ctlr; in fcoe_interface_create() local 404 ctlr->cdev = ctlr_dev; in fcoe_interface_create() 512 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local 535 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local 704 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local 1338 struct fcoe_ctlr *ctlr; in fcoe_rcv() local 1347 lport = ctlr->lp; in fcoe_rcv() 1564 if (ctlr->map_dest) in fcoe_xmit() 1857 lport = ctlr->lp; in fcoe_device_notification() 2077 lport = ctlr->lp; in fcoe_destroy() [all …]
|
/linux/drivers/scsi/device_handler/ |
A D | scsi_dh_rdac.c | 323 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() 555 (char *) h->ctlr->array_name, h->ctlr->index, in send_mode_select() 571 (char *) h->ctlr->array_name, h->ctlr->index); in send_mode_select() 599 ctlr = qdata->h->ctlr; in queue_mode_select() 666 (char *) h->ctlr->array_name, h->ctlr->index, in rdac_check_sense() [all …]
|
/linux/drivers/mtd/hyperbus/ |
A D | hyperbus-core.c | 23 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 …]
|
A D | hbmc-am654.c | 28 struct hyperbus_ctlr *ctlr; member 33 struct hyperbus_ctlr ctlr; member 89 dev_dbg(priv->ctlr->dev, "DMA mapping failed\n"); in am654_hbmc_dma_read() 96 dev_err(priv->ctlr->dev, "device_prep_dma_memcpy error\n"); in am654_hbmc_dma_read() 108 dev_err(priv->ctlr->dev, "dma_submit_error %d\n", cookie); in am654_hbmc_dma_read() 115 dev_err(priv->ctlr->dev, "DMA wait_for_completion_timeout\n"); in am654_hbmc_dma_read() 150 dev_dbg(priv->ctlr->dev, "No DMA channel available\n"); in am654_hbmc_request_mmap_dma() 198 priv->ctlr.dev = dev; in am654_hbmc_probe() 199 priv->ctlr.ops = &am654_hbmc_ops; in am654_hbmc_probe() 200 priv->hbdev.ctlr = &priv->ctlr; in am654_hbmc_probe() [all …]
|
/linux/include/linux/spi/ |
A D | spi.h | 675 return dev_get_drvdata(&ctlr->dev); in spi_controller_get_devdata() 681 dev_set_drvdata(&ctlr->dev, data); in spi_controller_set_devdata() 686 if (!ctlr || !get_device(&ctlr->dev)) in spi_controller_get() 688 return ctlr; in spi_controller_get() 693 if (ctlr) in spi_controller_put() 694 put_device(&ctlr->dev); in spi_controller_put() 759 struct spi_controller *ctlr); 1109 if (!ctlr->max_message_size) in spi_max_message_size() 1111 return ctlr->max_message_size(spi); in spi_max_message_size() 1121 if (ctlr->max_transfer_size) in spi_max_transfer_size() [all …]
|
/linux/drivers/net/can/rcar/ |
A D | rcar_can.c | 455 ctlr = readw(&priv->regs->ctlr); in rcar_can_start() 457 writew(ctlr, &priv->regs->ctlr); in rcar_can_start() 460 writew(ctlr, &priv->regs->ctlr); in rcar_can_start() 471 writew(ctlr, &priv->regs->ctlr); in rcar_can_start() 560 ctlr = readw(&priv->regs->ctlr); in rcar_can_stop() 562 writew(ctlr, &priv->regs->ctlr); in rcar_can_stop() 573 writew(ctlr, &priv->regs->ctlr); in rcar_can_stop() 855 ctlr = readw(&priv->regs->ctlr); in rcar_can_suspend() 857 writew(ctlr, &priv->regs->ctlr); in rcar_can_suspend() 859 writew(ctlr, &priv->regs->ctlr); in rcar_can_suspend() [all …]
|
/linux/drivers/scsi/bnx2fc/ |
A D | bnx2fc_fcoe.c | 375 if (ctlr->map_dest) in bnx2fc_xmit() 440 lport = ctlr->lp; in bnx2fc_rcv() 582 if (ctlr->state) { in bnx2fc_recv_frame() 926 lport = ctlr->lp; in bnx2fc_indicate_netevent() 1854 lport = ctlr->lp; in bnx2fc_ulp_start() 1881 lport = ctlr->lp; in bnx2fc_stop() 2012 lport = ctlr->lp; in bnx2fc_start_disc() 2092 if (!ctlr->lp) { in __bnx2fc_disable() 2190 if (!ctlr->lp) { in __bnx2fc_enable() 2201 lport = ctlr->lp; in __bnx2fc_enable() [all …]
|