Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/linux/drivers/s390/cio/
A Ddevice_fsm.c102 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local
142 memset(&cdev->id, 0, sizeof(cdev->id)); in ccw_device_update_sense_data()
300 if (cdev->drv->notify(cdev, event)) in ccw_device_notify()
516 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done()
739 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
772 cdev->handler (cdev, 0, irb); in ccw_device_irq()
811 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout()
836 cdev->handler (cdev, 0, irb); in ccw_device_w4sense()
877 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq()
894 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout()
[all …]
A Ddevice.c281 if (!cdev->online || !cdev->drv) in ccw_device_set_offline()
285 ret = cdev->drv->set_offline(cdev); in ccw_device_set_offline()
358 if (cdev->online || !cdev->drv) in ccw_device_set_online()
400 ret = cdev->drv->set_online(cdev); in ccw_device_set_online()
467 if (cdev->drv && cdev->drv->set_online) in online_store_recog_and_online()
741 priv->cdev = cdev; in io_subchannel_initialize_dev()
1197 if (cdev && cdev->drv && cdev->drv->path_event) in io_subchannel_chp_event()
1219 cdev->handler(cdev, cdev->private->intparm, ERR_PTR(-EIO)); in io_subchannel_quiesce()
1579 if (!cdev->drv || !cdev->handler) in ccw_device_enable_console()
1778 cdev->drv->shutdown(cdev); in ccw_device_shutdown()
[all …]
A Ddevice_pgid.c82 nop_build_cp(cdev); in nop_do()
125 nop_do(cdev); in nop_callback()
162 verify_start(cdev); in pgid_wipeout_callback()
257 spid_do(cdev); in spid_callback()
278 spid_do(cdev); in spid_start()
501 snid_do(cdev); in snid_callback()
537 snid_do(cdev); in verify_start()
543 nop_do(cdev); in verify_start()
565 cdev->private->flags.pgroup = cdev->private->options.pgroup; in ccw_device_verify_start()
566 cdev->private->flags.mpath = cdev->private->options.mpath; in ccw_device_verify_start()
[all …]
A Ddevice_ops.c74 cdev->private->options.fast)) in ccw_device_set_options()
120 return cdev->private->flags.mpath; in ccw_device_is_multipath()
142 if (!cdev || !cdev->dev.parent) in ccw_device_clear()
198 if (!cdev || !cdev->dev.parent) in ccw_device_start_timeout_key()
379 if (!cdev || !cdev->dev.parent) in ccw_device_halt()
413 if (!cdev || !cdev->dev.parent) in ccw_device_resume()
463 if (!cdev->dev.parent) in ccw_device_get_path_mask()
839 if (!get_device(&cdev->dev)) in ccw_device_dma_zalloc()
841 addr = __cio_gp_dma_zalloc(cdev->private->dma_pool, &cdev->dev, size, dma_handle); in ccw_device_dma_zalloc()
843 put_device(&cdev->dev); in ccw_device_dma_zalloc()
[all …]
A Dccwreq.c85 ccwreq_next_path(cdev); in ccwreq_do()
102 ccwreq_next_path(cdev); in ccwreq_do()
111 ccwreq_stop(cdev, rc); in ccwreq_do()
137 ccwreq_do(cdev); in ccw_request_start()
162 ccwreq_stop(cdev, rc); in ccw_request_cancel()
196 if (cdev->drv && cdev->drv->uc_handler) { in ccwreq_status()
197 todo = cdev->drv->uc_handler(cdev, lcirb); in ccwreq_status()
303 ccwreq_stop(cdev, 0); in ccw_request_handler()
314 ccwreq_do(cdev); in ccw_request_handler()
317 ccwreq_stop(cdev, rc); in ccw_request_handler()
[all …]
A Dcmf.c220 if (!cdev->private->cmb) in set_schib_wait()
306 if (!cdev->private->cmb) in cmf_cmb_copy_wait()
542 priv = cdev->private; in free_cmb()
783 if (cdev->private->cmb) in alloc_cmbe()
1130 cmbops->reset(cdev); in enable_cmf()
1133 get_device(&cdev->dev); in enable_cmf()
1137 cmbops->reset(cdev); in enable_cmf()
1140 cmbops->free(cdev); in enable_cmf()
1146 cmbops->free(cdev); in enable_cmf()
1174 cmbops->free(cdev); in __disable_cmf()
[all …]
/linux/sound/usb/caiaq/
A Daudio.c164 cdev->pcm_info.rates = cdev->samplerates; in snd_usb_caiaq_substream_close()
292 if (cdev->input_panic || cdev->output_panic) { in snd_usb_caiaq_pcm_pointer()
497 if ((cdev->input_panic || cdev->output_panic) && !cdev->warned) { in read_in_urb()
610 cdev = info->cdev; in read_completed()
676 struct snd_usb_caiaqdev *cdev = info->cdev; in write_completed() local
771 cdev->n_streams = max(cdev->n_audio_in, cdev->n_audio_out); in snd_usb_caiaq_audio_init()
788 cdev->n_audio_out, cdev->n_audio_in, &cdev->pcm); in snd_usb_caiaq_audio_init()
795 cdev->pcm->private_data = cdev; in snd_usb_caiaq_audio_init()
796 strscpy(cdev->pcm->name, cdev->product_name, sizeof(cdev->pcm->name)); in snd_usb_caiaq_audio_init()
805 cdev->samplerates = cdev->pcm_info.rates; in snd_usb_caiaq_audio_init()
[all …]
A Ddevice.c146 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
149 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
152 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
156 cdev->spec_received++; in usb_ep1_command_reply_dispatch()
280 cdev->bpp = bpp; in snd_usb_caiaq_set_audio_params()
401 cdev = caiaqdev(card); in create_card()
403 cdev->chip.card = card; in create_card()
455 if (!wait_event_timeout(cdev->ep1_wait_queue, cdev->spec_received, HZ)) { in init_card()
489 cdev->vendor_name, cdev->product_name, usbpath); in init_card()
491 setup_card(cdev); in init_card()
[all …]
A Dinput.c497 if (urb->status || !cdev || urb != cdev->ep4_in_urb) in snd_usb_caiaq_ep4_reply_dispatch()
536 if (!cdev) in snd_usb_caiaq_input_open()
555 if (!cdev) in snd_usb_caiaq_input_close()
597 usb_make_path(usb_dev, cdev->phys, sizeof(cdev->phys)); in snd_usb_caiaq_input_init()
598 strlcat(cdev->phys, "/input0", sizeof(cdev->phys)); in snd_usb_caiaq_input_init()
601 input->phys = cdev->phys; in snd_usb_caiaq_input_init()
818 cdev->input_dev = input; in snd_usb_caiaq_input_init()
828 cdev->input_dev = NULL; in snd_usb_caiaq_input_init()
834 if (!cdev || !cdev->input_dev) in snd_usb_caiaq_input_free()
839 cdev->ep4_in_urb = NULL; in snd_usb_caiaq_input_free()
[all …]
A Dmidi.c30 if (!cdev) in snd_usb_caiaq_midi_input_trigger()
45 if (cdev->midi_out_active) { in snd_usb_caiaq_midi_output_close()
46 usb_kill_urb(&cdev->midi_out_urb); in snd_usb_caiaq_midi_output_close()
47 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_close()
66 cdev->midi_out_buf[2] = len; in snd_usb_caiaq_midi_send()
75 cdev->midi_out_active = 1; in snd_usb_caiaq_midi_send()
84 if (!cdev->midi_out_active) in snd_usb_caiaq_midi_output_trigger()
87 cdev->midi_out_substream = NULL; in snd_usb_caiaq_midi_output_trigger()
154 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_done()
158 if (!cdev->midi_out_substream) in snd_usb_caiaq_midi_output_done()
[all …]
/linux/drivers/net/can/m_can/
A Dm_can.c332 return cdev->ops->read_reg(cdev, reg); in m_can_read()
338 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
1225 cdev->ops->clear_interrupts(cdev); in m_can_interrupt_handler()
1293 irq_wake_thread(cdev->net->irq, cdev->net); in m_can_coalescing_timer()
1566 cdev->ops->init(cdev); in m_can_chip_config()
1892 cdev->tx_fifo_putidx = (++cdev->tx_fifo_putidx >= cdev->can.echo_skb_max ? in m_can_tx_handler()
1918 struct m_can_classdev *cdev = op->cdev; in m_can_tx_work_queue() local
1930 cdev->tx_ops[cdev->next_tx_op].skb = skb; in m_can_tx_queue_skb()
1932 queue_work(cdev->tx_wq, &cdev->tx_ops[cdev->next_tx_op].work); in m_can_tx_queue_skb()
1935 if (cdev->next_tx_op >= cdev->tx_fifo_size) in m_can_tx_queue_skb()
[all …]
/linux/sound/soc/intel/catpt/
A Ddsp.c139 cdev->dmac = dmac; in catpt_dmac_probe()
307 cdev->spec->pll_shutdown(cdev, lp); in catpt_dsp_select_lpclock()
383 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, in catpt_dsp_power_down()
385 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, in catpt_dsp_power_down()
387 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_down()
388 catpt_updatel_pci(cdev, VDRTCTL0, mask, cdev->spec->d3pgd_bit); in catpt_dsp_power_down()
417 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_up()
419 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, 0); in catpt_dsp_power_up()
420 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, 0); in catpt_dsp_power_up()
508 memcpy_fromio(pos, cdev->lpe_ba + cdev->iram.start, hdr->size); in catpt_coredump()
[all …]
A Ddevice.c41 memset(&cdev->dx_ctx, 0, sizeof(cdev->dx_ctx)); in catpt_suspend()
42 ret = catpt_ipc_enter_dxstate(cdev, CATPT_DX_STATE_D3, &cdev->dx_ctx); in catpt_suspend()
101 ret = catpt_ipc_set_device_format(cdev, &cdev->devfmt[i]); in catpt_resume()
215 cdev->dev = dev; in catpt_dev_init()
216 cdev->spec = spec; in catpt_dev_init()
240 struct catpt_dev *cdev; in catpt_acpi_probe() local
256 cdev = devm_kzalloc(dev, sizeof(*cdev), GFP_KERNEL); in catpt_acpi_probe()
257 if (!cdev) in catpt_acpi_probe()
275 cdev->dxbuf_vaddr = dmam_alloc_coherent(dev, catpt_dram_size(cdev), in catpt_acpi_probe()
277 if (!cdev->dxbuf_vaddr) in catpt_acpi_probe()
[all …]
A Dloader.c124 type = &cdev->modules[i]; in catpt_store_module_states()
159 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_store_memdumps()
219 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_restore_memdumps()
264 if (off < cdev->dram.start || off > cdev->dram.end) in catpt_restore_fwimage()
302 sram = &cdev->iram; in catpt_load_block()
305 sram = &cdev->dram; in catpt_load_block()
594 ret = catpt_load_image(cdev, chan, names[cdev->spec->core_id - 1], in catpt_load_images()
632 catpt_dsp_update_srampge(cdev, &cdev->dram, cdev->spec->dram_mask); in catpt_boot_firmware()
633 catpt_dsp_update_srampge(cdev, &cdev->iram, cdev->spec->iram_mask); in catpt_boot_firmware()
657 ret = catpt_ipc_get_mixer_stream_info(cdev, &cdev->mixer); in catpt_first_boot_firmware()
[all …]
A Dregisters.h133 #define catpt_num_dram(cdev) (hweight_long((cdev)->spec->dram_mask)) argument
134 #define catpt_num_iram(cdev) (hweight_long((cdev)->spec->iram_mask)) argument
135 #define catpt_dram_size(cdev) (catpt_num_dram(cdev) * CATPT_MEMBLOCK_SIZE) argument
136 #define catpt_iram_size(cdev) (catpt_num_iram(cdev) * CATPT_MEMBLOCK_SIZE) argument
140 #define catpt_shim_addr(cdev) \ argument
141 ((cdev)->lpe_ba + (cdev)->spec->host_shim_offset)
143 ((cdev)->lpe_ba + (cdev)->spec->host_dma_offset[dma])
145 ((cdev)->lpe_ba + (cdev)->spec->host_ssp_offset[ssp])
147 ((cdev)->lpe_ba + (cdev)->ipc.config.inbox_offset)
149 ((cdev)->lpe_ba + (cdev)->ipc.config.outbox_offset)
[all …]
A Dipc.c69 struct catpt_ipc *ipc = &cdev->ipc; in catpt_wait_msg_completion()
89 struct catpt_ipc *ipc = &cdev->ipc; in catpt_dsp_do_send_msg()
101 catpt_dsp_send_tx(cdev, &request); in catpt_dsp_do_send_msg()
128 struct catpt_ipc *ipc = &cdev->ipc; in catpt_dsp_send_msg_timeout()
142 cdev->ipc.default_timeout); in catpt_dsp_send_msg()
209 complete(&cdev->fw_ready); in catpt_dsp_process_response()
217 catpt_coredump(cdev); in catpt_dsp_process_response()
227 catpt_dsp_copy_rx(cdev, header); in catpt_dsp_process_response()
243 struct catpt_dev *cdev = dev_id; in catpt_dsp_irq_thread() local
266 struct catpt_dev *cdev = dev_id; in catpt_dsp_irq_handler() local
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_main.c261 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
348 cdev->db_size = pci_resource_len(cdev->pdev, 2); in qed_init_pci()
358 cdev->doorbells = ioremap_wc(cdev->db_phys_addr, cdev->db_size); in qed_init_pci()
464 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in qed_alloc_cdev()
744 struct qed_dev *cdev = hwfn->cdev; in qed_slowpath_irq_req() local
768 flags, cdev->name, cdev); in qed_slowpath_irq_req()
795 struct qed_dev *cdev = p_hwfn->cdev; in qed_slowpath_irq_sync() local
821 free_irq(cdev->pdev->irq, cdev); in qed_slowpath_irq_free()
1094 if (cdev->num_hwfns > 1 || IS_VF(cdev)) in qed_update_pf_params()
1381 if (IS_PF(cdev) && (cdev->num_hwfns == 1) && in qed_slowpath_start()
[all …]
A Dqed_debug.h27 int qed_dbg_grc_size(struct qed_dev *cdev);
30 int qed_dbg_idle_chk_size(struct qed_dev *cdev);
33 int qed_dbg_reg_fifo_size(struct qed_dev *cdev);
36 int qed_dbg_igu_fifo_size(struct qed_dev *cdev);
44 int qed_dbg_ilt_size(struct qed_dev *cdev);
47 int qed_dbg_mcp_trace_size(struct qed_dev *cdev);
48 int qed_dbg_phy_size(struct qed_dev *cdev);
50 int qed_dbg_all_data_size(struct qed_dev *cdev);
51 u8 qed_get_debug_engine(struct qed_dev *cdev);
57 void qed_dbg_pf_init(struct qed_dev *cdev);
[all …]
/linux/drivers/usb/gadget/
A Dcomposite.c740 cdev->gadget->ops->get_config_params(cdev->gadget, in bos_desc()
1078 config->cdev = cdev; in usb_add_config_only()
2097 if (cdev->use_os_string && cdev->os_desc_config && in composite_setup()
2310 cdev->driver->disconnect(cdev); in __composite_disconnect()
2363 cdev->driver->unbind(cdev); in __composite_unbind()
2438 cdev->req->context = cdev; in composite_dev_prepare()
2483 cdev->os_desc_req->context = cdev; in composite_os_desc_req_prepare()
2509 usb_ep_dequeue(cdev->gadget->ep0, cdev->req); in composite_dev_cleanup()
2542 cdev = kzalloc(sizeof *cdev, GFP_KERNEL); in composite_bind()
2602 cdev->driver->suspend(cdev); in composite_suspend()
[all …]
/linux/drivers/misc/
A Denclosure.c187 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name()
203 if (cdev->cdev.kobj.sd) in enclosure_remove_links()
204 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links()
212 error = sysfs_create_link(&cdev->cdev.kobj, &cdev->dev->kobj, "device"); in enclosure_add_links()
217 error = sysfs_create_link(&cdev->dev->kobj, &cdev->cdev.kobj, name); in enclosure_add_links()
219 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_add_links()
236 if (cdev->dev) { in enclosure_component_release()
301 cdev = &ecomp->cdev; in enclosure_component_alloc()
337 cdev = &ecomp->cdev; in enclosure_component_register()
341 put_device(cdev); in enclosure_component_register()
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A Dchtls_main.c101 clisten->cdev = cdev; in chtls_start_listen()
120 clisten->cdev = cdev; in chtls_stop_listen()
172 kfree(cdev); in chtls_free_uld()
226 if (!cdev->askb) in chtls_get_skb()
231 memset(cdev->askb->data, 0, cdev->askb->len); in chtls_get_skb()
241 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in chtls_uld_add()
242 if (!cdev) in chtls_uld_add()
288 return cdev; in chtls_uld_add()
296 kfree(cdev); in chtls_uld_add()
309 kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release); in chtls_free_all_uld()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_client.c87 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
98 cdev->client->ops->virtchnl_receive(&cdev->lan_info, cdev->client, in i40e_notify_client_of_vf_msg()
114 if (!cdev || !cdev->client) in i40e_notify_client_of_l2_param_changes()
129 cdev->client->ops->l2_param_change(&cdev->lan_info, cdev->client, in i40e_notify_client_of_l2_param_changes()
170 if (!cdev || !cdev->client) in i40e_notify_client_of_netdev_close()
181 cdev->client->ops->close(&cdev->lan_info, cdev->client, reset); in i40e_notify_client_of_netdev_close()
197 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_reset()
222 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_enable()
250 if (!cdev || !cdev->client) in i40e_vf_client_capable()
271 if (!cdev || !cdev->client) in i40e_client_update_msix_info()
[all …]
/linux/sound/soc/sof/
A Dsof-client.c54 kfree(cdev); in sof_client_auxdev_release()
215 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in sof_client_dev_register()
216 if (!cdev) in sof_client_dev_register()
219 cdev->sdev = sdev; in sof_client_dev_register()
220 auxdev = &cdev->auxdev; in sof_client_dev_register()
258 kfree(cdev); in sof_client_dev_register()
275 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
518 event->cdev = cdev; in sof_client_register_ipc_rx_handler()
539 if (event->cdev == cdev && event->ipc_msg_type == ipc_msg_type) { in sof_client_unregister_ipc_rx_handler()
576 event->cdev = cdev; in sof_client_register_fw_state_handler()
[all …]
/linux/include/linux/qed/
A Dqed_eth_if.h204 u8 (*getstate)(struct qed_dev *cdev);
216 u8 (*getpfcstate)(struct qed_dev *cdev);
221 u8 (*getdcbx)(struct qed_dev *cdev);
228 u8 (*setall)(struct qed_dev *cdev);
268 int (*fill_dev_info)(struct qed_dev *cdev,
277 int (*vport_start)(struct qed_dev *cdev,
280 int (*vport_stop)(struct qed_dev *cdev,
283 int (*vport_update)(struct qed_dev *cdev,
286 int (*q_rx_start)(struct qed_dev *cdev,
297 int (*q_tx_start)(struct qed_dev *cdev,
[all …]
/linux/drivers/platform/surface/
A Dsurface_aggregator_cdev.c78 if (cdev) in ssam_cdev_get()
81 return cdev; in ssam_cdev_get()
86 if (cdev) in ssam_cdev_put()
470 client->cdev = ssam_cdev_get(cdev); in ssam_cdev_device_open()
578 struct ssam_cdev *cdev = client->cdev; in ssam_cdev_read() local
688 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ssam_dbg_device_probe()
689 if (!cdev) in ssam_dbg_device_probe()
694 cdev->ctrl = ctrl; in ssam_dbg_device_probe()
708 kfree(cdev); in ssam_dbg_device_probe()
752 cdev->ctrl = NULL; in ssam_dbg_device_remove()
[all …]

Completed in 83 milliseconds

12345678910>>...27