Home
last modified time | relevance | path

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

12345678910>>...29

/openbmc/linux/drivers/s390/cio/
H 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()
511 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done()
734 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
767 cdev->handler (cdev, 0, irb); in ccw_device_irq()
806 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout()
831 cdev->handler (cdev, 0, irb); in ccw_device_w4sense()
872 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq()
889 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout()
[all …]
H 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 …]
H 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 …]
H 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()
375 if (!cdev || !cdev->dev.parent) in ccw_device_halt()
409 if (!cdev || !cdev->dev.parent) in ccw_device_resume()
459 if (!cdev->dev.parent) in ccw_device_get_path_mask()
830 if (!get_device(&cdev->dev)) in ccw_device_dma_zalloc()
832 addr = cio_gp_dma_zalloc(cdev->private->dma_pool, &cdev->dev, size); in ccw_device_dma_zalloc()
834 put_device(&cdev->dev); in ccw_device_dma_zalloc()
[all …]
H 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 …]
H A Dcmf.c219 if (!cdev->private->cmb) in set_schib_wait()
305 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 …]
/openbmc/linux/sound/usb/caiaq/
H A Daudio.c164 cdev->pcm_info.rates = cdev->samplerates; in snd_usb_caiaq_substream_close()
303 if (cdev->input_panic || cdev->output_panic) { in snd_usb_caiaq_pcm_pointer()
508 if ((cdev->input_panic || cdev->output_panic) && !cdev->warned) { in read_in_urb()
621 cdev = info->cdev; in read_completed()
687 struct snd_usb_caiaqdev *cdev = info->cdev; in write_completed() local
782 cdev->n_streams = max(cdev->n_audio_in, cdev->n_audio_out); in snd_usb_caiaq_audio_init()
799 cdev->n_audio_out, cdev->n_audio_in, &cdev->pcm); in snd_usb_caiaq_audio_init()
806 cdev->pcm->private_data = cdev; in snd_usb_caiaq_audio_init()
807 strscpy(cdev->pcm->name, cdev->product_name, sizeof(cdev->pcm->name)); in snd_usb_caiaq_audio_init()
816 cdev->samplerates = cdev->pcm_info.rates; in snd_usb_caiaq_audio_init()
[all …]
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/sound/soc/intel/catpt/
H 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 …]
H 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 …]
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/drivers/net/can/m_can/
H A Dm_can.c325 return cdev->ops->read_reg(cdev, reg); in m_can_read()
331 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
363 return cdev->ops->write_fifo(cdev, fpi, &val, 1); in m_can_fifo_write_no_off()
1104 cdev->ops->clear_interrupts(cdev); in m_can_isr()
1413 cdev->ops->init(cdev); in m_can_chip_config()
1577 cdev->ops->init(cdev); in m_can_dev_setup()
1800 queue_work(cdev->tx_wq, &cdev->tx_work); in m_can_start_xmit()
2000 cdev->hclk = devm_clk_get(cdev->dev, "hclk"); in m_can_class_get_clocks()
2001 cdev->cclk = devm_clk_get(cdev->dev, "cclk"); in m_can_class_get_clocks()
2003 if (IS_ERR(cdev->hclk) || IS_ERR(cdev->cclk)) { in m_can_class_get_clocks()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_main.c261 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
327 if (IS_PF(cdev) && !cdev->pci_params.pm_cap) in qed_init_pci()
359 cdev->doorbells = ioremap_wc(cdev->db_phys_addr, cdev->db_size); in qed_init_pci()
465 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in qed_alloc_cdev()
745 struct qed_dev *cdev = hwfn->cdev; in qed_slowpath_irq_req() local
769 flags, cdev->name, cdev); in qed_slowpath_irq_req()
796 struct qed_dev *cdev = p_hwfn->cdev; in qed_slowpath_irq_sync() local
822 free_irq(cdev->pdev->irq, cdev); in qed_slowpath_irq_free()
1095 if (cdev->num_hwfns > 1 || IS_VF(cdev)) in qed_update_pf_params()
1382 if (IS_PF(cdev) && (cdev->num_hwfns == 1) && in qed_slowpath_start()
[all …]
H 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 …]
/openbmc/linux/drivers/usb/gadget/
H 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 …]
/openbmc/linux/drivers/misc/
H 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 …]
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H 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 …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H 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()
128 cdev->client->ops->l2_param_change(&cdev->lan_info, cdev->client, in i40e_notify_client_of_l2_param_changes()
172 if (!cdev || !cdev->client) in i40e_notify_client_of_netdev_close()
183 cdev->client->ops->close(&cdev->lan_info, cdev->client, reset); in i40e_notify_client_of_netdev_close()
199 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_reset()
224 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_enable()
252 if (!cdev || !cdev->client) in i40e_vf_client_capable()
273 if (!cdev || !cdev->client) in i40e_client_update_msix_info()
[all …]
/openbmc/linux/include/linux/qed/
H 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 …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dcomposite.c88 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local
111 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_activate() local
318 if (cdev->config) in set_config()
355 cdev->config = c; in set_config()
438 config->cdev = cdev; in usb_add_config()
928 if (cdev->config) in composite_disconnect()
971 if (cdev->req) { in composite_unbind()
975 kfree(cdev); in composite_unbind()
986 cdev = calloc(sizeof *cdev, 1); in composite_bind()
987 if (!cdev) in composite_bind()
[all …]
/openbmc/linux/sound/soc/sof/
H 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()
517 event->cdev = cdev; in sof_client_register_ipc_rx_handler()
538 if (event->cdev == cdev && event->ipc_msg_type == ipc_msg_type) { in sof_client_unregister_ipc_rx_handler()
575 event->cdev = cdev; in sof_client_register_fw_state_handler()
[all …]

12345678910>>...29