/linux-6.6.21/drivers/hid/ |
D | hid-nintendo.c | 485 #define jc_type_is_joycon(ctlr) \ argument 486 (ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_JOYCONL || \ 487 ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_JOYCONR || \ 488 ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_CHRGGRIP) 489 #define jc_type_is_procon(ctlr) \ argument 490 (ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_PROCON) 491 #define jc_type_is_chrggrip(ctlr) \ argument 492 (ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_CHRGGRIP) 495 #define jc_type_has_left(ctlr) \ argument 496 (ctlr->ctlr_type == JOYCON_CTLR_TYPE_JCL || \ [all …]
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-hisi.c | 112 static void hisi_i2c_enable_int(struct hisi_i2c_controller *ctlr, u32 mask) in hisi_i2c_enable_int() argument 114 writel_relaxed(mask, ctlr->iobase + HISI_I2C_INT_MASK); in hisi_i2c_enable_int() 117 static void hisi_i2c_disable_int(struct hisi_i2c_controller *ctlr, u32 mask) in hisi_i2c_disable_int() argument 119 writel_relaxed((~mask) & HISI_I2C_INT_ALL, ctlr->iobase + HISI_I2C_INT_MASK); in hisi_i2c_disable_int() 122 static void hisi_i2c_clear_int(struct hisi_i2c_controller *ctlr, u32 mask) in hisi_i2c_clear_int() argument 124 writel_relaxed(mask, ctlr->iobase + HISI_I2C_INT_CLR); in hisi_i2c_clear_int() 127 static void hisi_i2c_handle_errors(struct hisi_i2c_controller *ctlr) in hisi_i2c_handle_errors() argument 129 u32 int_err = ctlr->xfer_err, reg; in hisi_i2c_handle_errors() 132 reg = readl(ctlr->iobase + HISI_I2C_FIFO_STATE); in hisi_i2c_handle_errors() 135 dev_err(ctlr->dev, "rx fifo error read\n"); in hisi_i2c_handle_errors() [all …]
|
/linux-6.6.21/drivers/spi/ |
D | spi.c | 148 struct spi_controller *ctlr = container_of(dev, \ 150 return spi_statistics_##field##_show(ctlr->pcpu_statistics, buf); \ 315 struct spi_controller *ctlr) in spi_statistics_add_transfer_stats() argument 332 (xfer->tx_buf != ctlr->dummy_tx)) in spi_statistics_add_transfer_stats() 335 (xfer->rx_buf != ctlr->dummy_rx)) in spi_statistics_add_transfer_stats() 567 struct spi_device *spi_alloc_device(struct spi_controller *ctlr) in spi_alloc_device() argument 571 if (!spi_controller_get(ctlr)) in spi_alloc_device() 576 spi_controller_put(ctlr); in spi_alloc_device() 583 spi_controller_put(ctlr); in spi_alloc_device() 587 spi->master = spi->controller = ctlr; in spi_alloc_device() [all …]
|
D | spi-bcm2835.c | 123 struct spi_controller *ctlr; member 400 spi_finalize_current_transfer(bs->ctlr); in bcm2835_spi_interrupt() 406 static int bcm2835_spi_transfer_one_irq(struct spi_controller *ctlr, in bcm2835_spi_transfer_one_irq() argument 411 struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr); in bcm2835_spi_transfer_one_irq() 481 static void bcm2835_spi_transfer_prologue(struct spi_controller *ctlr, in bcm2835_spi_transfer_prologue() argument 526 dma_sync_single_for_device(ctlr->dma_rx->device->dev, in bcm2835_spi_transfer_prologue() 605 struct spi_controller *ctlr = data; in bcm2835_spi_dma_rx_done() local 606 struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr); in bcm2835_spi_dma_rx_done() 613 dmaengine_terminate_async(ctlr->dma_tx); in bcm2835_spi_dma_rx_done() 622 spi_finalize_current_transfer(ctlr); in bcm2835_spi_dma_rx_done() [all …]
|
D | spi-rockchip.c | 244 struct spi_controller *ctlr = spi->controller; in rockchip_spi_set_cs() local 245 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_set_cs() 275 static void rockchip_spi_handle_err(struct spi_controller *ctlr, in rockchip_spi_handle_err() argument 278 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_handle_err() 290 dmaengine_terminate_async(ctlr->dma_tx); in rockchip_spi_handle_err() 293 dmaengine_terminate_async(ctlr->dma_rx); in rockchip_spi_handle_err() 351 struct spi_controller *ctlr = dev_id; in rockchip_spi_isr() local 352 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_isr() 356 ctlr->target_abort(ctlr); in rockchip_spi_isr() 371 spi_finalize_current_transfer(ctlr); in rockchip_spi_isr() [all …]
|
D | spi-ingenic.c | 121 spi_ingenic_prepare_dma(struct spi_controller *ctlr, struct dma_chan *chan, in spi_ingenic_prepare_dma() argument 125 struct ingenic_spi *priv = spi_controller_get_devdata(ctlr); in spi_ingenic_prepare_dma() 160 desc->callback_param = ctlr; in spi_ingenic_prepare_dma() 174 static int spi_ingenic_dma_tx(struct spi_controller *ctlr, in spi_ingenic_dma_tx() argument 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() 187 dmaengine_terminate_async(ctlr->dma_rx); in spi_ingenic_dma_tx() 192 dma_async_issue_pending(ctlr->dma_rx); in spi_ingenic_dma_tx() 193 dma_async_issue_pending(ctlr->dma_tx); in spi_ingenic_dma_tx() 239 static int spi_ingenic_transfer_one(struct spi_controller *ctlr, in spi_ingenic_transfer_one() argument [all …]
|
D | spi-cadence.c | 357 struct spi_controller *ctlr = dev_id; in cdns_spi_irq() local 358 struct cdns_spi *xspi = spi_controller_get_devdata(ctlr); in cdns_spi_irq() 372 spi_finalize_current_transfer(ctlr); in cdns_spi_irq() 398 spi_finalize_current_transfer(ctlr); in cdns_spi_irq() 406 static int cdns_prepare_message(struct spi_controller *ctlr, in cdns_prepare_message() argument 409 if (!spi_controller_is_target(ctlr)) in cdns_prepare_message() 427 static int cdns_transfer_one(struct spi_controller *ctlr, in cdns_transfer_one() argument 431 struct cdns_spi *xspi = spi_controller_get_devdata(ctlr); in cdns_transfer_one() 438 if (!spi_controller_is_target(ctlr)) { in cdns_transfer_one() 469 static int cdns_prepare_transfer_hardware(struct spi_controller *ctlr) in cdns_prepare_transfer_hardware() argument [all …]
|
D | spi-mux.c | 89 struct spi_controller *ctlr = spi_get_drvdata(priv->spi); in spi_mux_complete_cb() local 90 struct spi_message *m = ctlr->cur_msg; in spi_mux_complete_cb() 95 spi_finalize_current_message(ctlr); in spi_mux_complete_cb() 99 static int spi_mux_transfer_one_message(struct spi_controller *ctlr, in spi_mux_transfer_one_message() argument 102 struct spi_mux_priv *priv = spi_controller_get_devdata(ctlr); in spi_mux_transfer_one_message() 128 struct spi_controller *ctlr; in spi_mux_probe() local 132 ctlr = spi_alloc_master(&spi->dev, sizeof(*priv)); in spi_mux_probe() 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() [all …]
|
D | spi-mem.c | 36 int spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, in spi_controller_dma_map_mem_op_data() argument 45 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_map_mem_op_data() 46 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data() 47 else if (op->data.dir == SPI_MEM_DATA_IN && ctlr->dma_rx) in spi_controller_dma_map_mem_op_data() 48 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data() 50 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data() 55 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data() 82 void spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr, in spi_controller_dma_unmap_mem_op_data() argument 91 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_unmap_mem_op_data() 92 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data() [all …]
|
D | spi-sunplus-sp7021.c | 79 struct spi_controller *ctlr; member 111 static int sp7021_spi_slave_abort(struct spi_controller *ctlr) in sp7021_spi_slave_abort() argument 113 struct sp7021_spi_ctlr *pspim = spi_master_get_devdata(ctlr); in sp7021_spi_slave_abort() 241 static void sp7021_prep_transfer(struct spi_controller *ctlr, struct spi_device *spi) in sp7021_prep_transfer() argument 243 struct sp7021_spi_ctlr *pspim = spi_master_get_devdata(ctlr); in sp7021_prep_transfer() 251 static int sp7021_spi_controller_prepare_message(struct spi_controller *ctlr, in sp7021_spi_controller_prepare_message() argument 254 struct sp7021_spi_ctlr *pspim = spi_master_get_devdata(ctlr); in sp7021_spi_controller_prepare_message() 284 static void sp7021_spi_setup_clk(struct spi_controller *ctlr, struct spi_transfer *xfer) in sp7021_spi_setup_clk() argument 286 struct sp7021_spi_ctlr *pspim = spi_master_get_devdata(ctlr); in sp7021_spi_setup_clk() 298 static int sp7021_spi_master_transfer_one(struct spi_controller *ctlr, struct spi_device *spi, in sp7021_spi_master_transfer_one() argument [all …]
|
D | spi-at91-usart.c | 105 struct spi_controller *ctlr = data; in dma_callback() local 106 struct at91_usart_spi *aus = spi_controller_get_devdata(ctlr); in dma_callback() 122 static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, in at91_usart_spi_configure_dma() argument 134 ctlr->dma_tx = dma_request_chan(dev, "tx"); in at91_usart_spi_configure_dma() 135 if (IS_ERR_OR_NULL(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 136 if (IS_ERR(ctlr->dma_tx)) { in at91_usart_spi_configure_dma() 137 err = PTR_ERR(ctlr->dma_tx); in at91_usart_spi_configure_dma() 147 ctlr->dma_rx = dma_request_chan(dev, "rx"); in at91_usart_spi_configure_dma() 148 if (IS_ERR_OR_NULL(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() 149 if (IS_ERR(ctlr->dma_rx)) { in at91_usart_spi_configure_dma() [all …]
|
D | spi-cs42l43.c | 33 struct spi_controller *ctlr; member 113 static int cs42l43_transfer_one(struct spi_controller *ctlr, struct spi_device *spi, in cs42l43_transfer_one() argument 155 static int cs42l43_prepare_message(struct spi_controller *ctlr, struct spi_message *msg) in cs42l43_prepare_message() argument 157 struct cs42l43_spi *priv = spi_controller_get_devdata(ctlr); in cs42l43_prepare_message() 176 static int cs42l43_prepare_transfer_hardware(struct spi_controller *ctlr) in cs42l43_prepare_transfer_hardware() argument 178 struct cs42l43_spi *priv = spi_controller_get_devdata(ctlr); in cs42l43_prepare_transfer_hardware() 188 static int cs42l43_unprepare_transfer_hardware(struct spi_controller *ctlr) in cs42l43_unprepare_transfer_hardware() argument 190 struct cs42l43_spi *priv = spi_controller_get_devdata(ctlr); in cs42l43_unprepare_transfer_hardware() 216 priv->ctlr = devm_spi_alloc_master(&pdev->dev, sizeof(*priv->ctlr)); in cs42l43_spi_probe() 217 if (!priv->ctlr) in cs42l43_spi_probe() [all …]
|
D | spi-slave-mt27xx.c | 129 static int mtk_spi_slave_prepare_message(struct spi_controller *ctlr, in mtk_spi_slave_prepare_message() argument 132 struct mtk_spi_slave *mdata = spi_controller_get_devdata(ctlr); in mtk_spi_slave_prepare_message() 162 static int mtk_spi_slave_fifo_transfer(struct spi_controller *ctlr, in mtk_spi_slave_fifo_transfer() argument 166 struct mtk_spi_slave *mdata = spi_controller_get_devdata(ctlr); in mtk_spi_slave_fifo_transfer() 199 static int mtk_spi_slave_dma_transfer(struct spi_controller *ctlr, in mtk_spi_slave_dma_transfer() argument 203 struct mtk_spi_slave *mdata = spi_controller_get_devdata(ctlr); in mtk_spi_slave_dma_transfer() 282 static int mtk_spi_slave_transfer_one(struct spi_controller *ctlr, in mtk_spi_slave_transfer_one() argument 286 struct mtk_spi_slave *mdata = spi_controller_get_devdata(ctlr); in mtk_spi_slave_transfer_one() 293 return mtk_spi_slave_dma_transfer(ctlr, spi, xfer); in mtk_spi_slave_transfer_one() 295 return mtk_spi_slave_fifo_transfer(ctlr, spi, xfer); in mtk_spi_slave_transfer_one() [all …]
|
D | spi-ar934x.c | 45 struct spi_controller *ctlr; member 78 static int ar934x_spi_transfer_one_message(struct spi_controller *ctlr, in ar934x_spi_transfer_one_message() argument 81 struct ar934x_spi *sp = spi_controller_get_devdata(ctlr); in ar934x_spi_transfer_one_message() 154 spi_finalize_current_message(ctlr); in ar934x_spi_transfer_one_message() 167 struct spi_controller *ctlr; in ar934x_spi_probe() local 187 ctlr = devm_spi_alloc_host(&pdev->dev, sizeof(*sp)); in ar934x_spi_probe() 188 if (!ctlr) { in ar934x_spi_probe() 199 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe() 200 ctlr->setup = ar934x_spi_setup; in ar934x_spi_probe() 201 ctlr->transfer_one_message = ar934x_spi_transfer_one_message; in ar934x_spi_probe() [all …]
|
D | spi-rspi.c | 185 struct spi_controller *ctlr; member 244 int (*transfer_one)(struct spi_controller *ctlr, 490 dev_err(&rspi->ctlr->dev, "transmit timeout\n"); in rspi_data_out() 504 dev_err(&rspi->ctlr->dev, "receive timeout\n"); in rspi_data_in() 550 desc_rx = dmaengine_prep_slave_sg(rspi->ctlr->dma_rx, rx->sgl, in rspi_dma_transfer() 570 desc_tx = dmaengine_prep_slave_sg(rspi->ctlr->dma_tx, tx->sgl, in rspi_dma_transfer() 608 dma_async_issue_pending(rspi->ctlr->dma_rx); in rspi_dma_transfer() 610 dma_async_issue_pending(rspi->ctlr->dma_tx); in rspi_dma_transfer() 617 dmaengine_synchronize(rspi->ctlr->dma_tx); in rspi_dma_transfer() 619 dmaengine_synchronize(rspi->ctlr->dma_rx); in rspi_dma_transfer() [all …]
|
D | spi-omap2-mcspi.c | 120 struct spi_controller *ctlr; member 146 static inline void mcspi_write_reg(struct spi_controller *ctlr, in mcspi_write_reg() argument 149 struct omap2_mcspi *mcspi = spi_controller_get_devdata(ctlr); in mcspi_write_reg() 154 static inline u32 mcspi_read_reg(struct spi_controller *ctlr, int idx) in mcspi_read_reg() argument 156 struct omap2_mcspi *mcspi = spi_controller_get_devdata(ctlr); in mcspi_read_reg() 271 static void omap2_mcspi_set_mode(struct spi_controller *ctlr) in omap2_mcspi_set_mode() argument 273 struct omap2_mcspi *mcspi = spi_controller_get_devdata(ctlr); in omap2_mcspi_set_mode() 280 l = mcspi_read_reg(ctlr, OMAP2_MCSPI_MODULCTRL); in omap2_mcspi_set_mode() 282 if (spi_controller_is_target(ctlr)) { in omap2_mcspi_set_mode() 288 mcspi_write_reg(ctlr, OMAP2_MCSPI_MODULCTRL, l); in omap2_mcspi_set_mode() [all …]
|
D | spi-rpc-if.c | 133 struct spi_controller *ctlr; in rpcif_spi_probe() local 137 ctlr = devm_spi_alloc_host(&pdev->dev, sizeof(*rpc)); in rpcif_spi_probe() 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() 155 ctlr->bits_per_word_mask = SPI_BPW_MASK(8); in rpcif_spi_probe() 156 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_TX_QUAD | SPI_RX_QUAD; in rpcif_spi_probe() [all …]
|
D | spi-sh-hspi.c | 38 struct spi_controller *ctlr; member 143 static int hspi_transfer_one_message(struct spi_controller *ctlr, in hspi_transfer_one_message() argument 146 struct hspi_priv *hspi = spi_controller_get_devdata(ctlr); in hspi_transfer_one_message() 207 spi_finalize_current_message(ctlr); in hspi_transfer_one_message() 215 struct spi_controller *ctlr; in hspi_probe() local 227 ctlr = spi_alloc_host(&pdev->dev, sizeof(*hspi)); in hspi_probe() 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() [all …]
|
D | spi-sh-msiof.c | 44 struct spi_controller *ctlr; member 303 if (!(p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_clk_regs() 367 if (spi_controller_is_target(p->ctlr)) { in sh_msiof_spi_set_pin_regs() 374 if (p->ctlr->flags & SPI_CONTROLLER_MUST_TX) { in sh_msiof_spi_set_pin_regs() 398 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_mode_regs() 559 if (spi_get_csgpiod(spi, 0) || spi_controller_is_target(p->ctlr)) in sh_msiof_spi_setup() 584 static int sh_msiof_prepare_message(struct spi_controller *ctlr, in sh_msiof_prepare_message() argument 587 struct sh_msiof_spi_priv *p = spi_controller_get_devdata(ctlr); in sh_msiof_prepare_message() 593 ss = ctlr->unused_native_cs; in sh_msiof_prepare_message() 608 bool target = spi_controller_is_target(p->ctlr); in sh_msiof_spi_start() [all …]
|
/linux-6.6.21/drivers/net/ethernet/ti/ |
D | davinci_cpdma.c | 112 struct cpdma_ctlr *ctlr; member 173 #define dma_reg_read(ctlr, ofs) readl((ctlr)->dmaregs + (ofs)) argument 176 #define dma_reg_write(ctlr, ofs, v) writel(v, (ctlr)->dmaregs + (ofs)) argument 190 static void cpdma_desc_pool_destroy(struct cpdma_ctlr *ctlr) in cpdma_desc_pool_destroy() argument 192 struct cpdma_desc_pool *pool = ctlr->pool; in cpdma_desc_pool_destroy() 202 dma_free_coherent(ctlr->dev, pool->mem_size, pool->cpumap, in cpdma_desc_pool_destroy() 212 static int cpdma_desc_pool_create(struct cpdma_ctlr *ctlr) in cpdma_desc_pool_create() argument 214 struct cpdma_params *cpdma_params = &ctlr->params; in cpdma_desc_pool_create() 218 pool = devm_kzalloc(ctlr->dev, sizeof(*pool), GFP_KERNEL); in cpdma_desc_pool_create() 221 ctlr->pool = pool; in cpdma_desc_pool_create() [all …]
|
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); 71 struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, 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); [all …]
|
/linux-6.6.21/drivers/scsi/fcoe/ |
D | fcoe_sysfs.c | 141 struct fcoe_ctlr_device *ctlr = dev_to_ctlr(dev); \ 142 if (ctlr->f->get_fcoe_ctlr_##field) \ 143 ctlr->f->get_fcoe_ctlr_##field(ctlr); \ 145 cast fcoe_ctlr_##field(ctlr)); \ 154 struct fcoe_ctlr_device *ctlr = fcoe_fcf_dev_to_ctlr_dev(fcf); \ 155 if (ctlr->f->get_fcoe_fcf_##field) \ 156 ctlr->f->get_fcoe_fcf_##field(fcf); \ 166 struct fcoe_ctlr_device *ctlr = dev_to_ctlr(dev); \ 167 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \ 181 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \ [all …]
|
/linux-6.6.21/drivers/mtd/hyperbus/ |
D | hyperbus-core.c | 23 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_read16() local 26 read_data.x[0] = ctlr->ops->read16(hbdev, addr); in hyperbus_read16() 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 46 ctlr->ops->copy_from(hbdev, to, from, len); in hyperbus_copy_from() 53 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_copy_to() local 55 ctlr->ops->copy_to(hbdev, to, from, len); in hyperbus_copy_to() 61 struct hyperbus_ctlr *ctlr; in hyperbus_register_device() local 67 if (!hbdev || !hbdev->np || !hbdev->ctlr || !hbdev->ctlr->dev) { in hyperbus_register_device() [all …]
|
/linux-6.6.21/drivers/scsi/device_handler/ |
D | scsi_dh_rdac.c | 186 struct rdac_controller *ctlr; member 264 static unsigned int rdac_failover_get(struct rdac_controller *ctlr, in rdac_failover_get() argument 273 if (ctlr->use_ms10) { in rdac_failover_get() 277 rdac_pg = &ctlr->mode_select.expanded; in rdac_failover_get() 289 rdac_pg = &ctlr->mode_select.legacy; in rdac_failover_get() 305 if (ctlr->use_ms10) { in rdac_failover_get() 319 struct rdac_controller *ctlr; in release_controller() local 320 ctlr = container_of(kref, struct rdac_controller, kref); in release_controller() 322 list_del(&ctlr->node); in release_controller() 323 kfree(ctlr); in release_controller() [all …]
|
/linux-6.6.21/include/linux/spi/ |
D | spi.h | 653 bool (*can_dma)(struct spi_controller *ctlr, 686 int (*prepare_transfer_hardware)(struct spi_controller *ctlr); 687 int (*transfer_one_message)(struct spi_controller *ctlr, 689 int (*unprepare_transfer_hardware)(struct spi_controller *ctlr); 690 int (*prepare_message)(struct spi_controller *ctlr, 692 int (*unprepare_message)(struct spi_controller *ctlr, 695 int (*slave_abort)(struct spi_controller *ctlr); 696 int (*target_abort)(struct spi_controller *ctlr); 704 int (*transfer_one)(struct spi_controller *ctlr, struct spi_device *spi, 706 void (*handle_err)(struct spi_controller *ctlr, [all …]
|