Home
last modified time | relevance | path

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

12345678910>>...54

/linux/drivers/s390/cio/
A Ddevice_fsm.c101 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local
147 memset(&cdev->id, 0, sizeof(cdev->id)); in ccw_device_update_sense_data()
305 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.c278 if (!cdev->online || !cdev->drv) in ccw_device_set_offline()
282 ret = cdev->drv->set_offline(cdev); in ccw_device_set_offline()
355 if (cdev->online || !cdev->drv) in ccw_device_set_online()
394 ret = cdev->drv->set_online(cdev); in ccw_device_set_online()
443 if (cdev->drv && cdev->drv->set_offline) in online_store_handle_offline()
461 if (cdev->drv && cdev->drv->set_online) in online_store_recog_and_online()
733 priv->cdev = cdev; in io_subchannel_initialize_dev()
1219 cdev->handler(cdev, cdev->private->intparm, ERR_PTR(-EIO)); in io_subchannel_quiesce()
1576 if (!cdev->drv || !cdev->handler) in ccw_device_enable_console()
1775 cdev->drv->shutdown(cdev); in ccw_device_shutdown()
[all …]
A Ddevice_pgid.c81 nop_build_cp(cdev); in nop_do()
124 nop_do(cdev); in nop_callback()
161 verify_start(cdev); in pgid_wipeout_callback()
256 spid_do(cdev); in spid_callback()
277 spid_do(cdev); in spid_start()
500 snid_do(cdev); in snid_callback()
536 snid_do(cdev); in verify_start()
542 nop_do(cdev); in verify_start()
564 cdev->private->flags.pgroup = cdev->private->options.pgroup; in ccw_device_verify_start()
565 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()
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 …]
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 …]
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 …]
/linux/sound/usb/caiaq/
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 …]
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()
817 cdev->input_dev = input; in snd_usb_caiaq_input_init()
827 cdev->input_dev = NULL; in snd_usb_caiaq_input_init()
833 if (!cdev || !cdev->input_dev) in snd_usb_caiaq_input_free()
838 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.c323 return cdev->ops->read_reg(cdev, reg); in m_can_read()
329 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
355 return cdev->ops->write_fifo(cdev, fpi, &val, 1); in m_can_fifo_write_no_off()
1070 cdev->ops->clear_interrupts(cdev); in m_can_isr()
1369 cdev->ops->init(cdev); in m_can_chip_config()
1497 cdev->can.bittiming_const = cdev->bit_timing ? in m_can_dev_setup()
1507 cdev->can.bittiming_const = cdev->bit_timing ? in m_can_dev_setup()
1535 cdev->ops->init(cdev); in m_can_dev_setup()
1759 queue_work(cdev->tx_wq, &cdev->tx_work); in m_can_start_xmit()
1922 cdev->hclk = devm_clk_get(cdev->dev, "hclk"); in m_can_class_get_clocks()
[all …]
/linux/sound/soc/intel/catpt/
A Ddsp.c129 cdev->dmac = dmac; in catpt_dmac_probe()
297 cdev->spec->pll_shutdown(cdev, lp); in catpt_dsp_select_lpclock()
373 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, in catpt_dsp_power_down()
375 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, in catpt_dsp_power_down()
377 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_down()
378 catpt_updatel_pci(cdev, VDRTCTL0, mask, cdev->spec->d3pgd_bit); in catpt_dsp_power_down()
407 mask = cdev->spec->d3srampgd_bit | cdev->spec->d3pgd_bit; in catpt_dsp_power_up()
409 catpt_dsp_set_srampge(cdev, &cdev->dram, cdev->spec->dram_mask, 0); in catpt_dsp_power_up()
410 catpt_dsp_set_srampge(cdev, &cdev->iram, cdev->spec->iram_mask, 0); in catpt_dsp_power_up()
498 memcpy_fromio(pos, cdev->lpe_ba + cdev->iram.start, hdr->size); in catpt_coredump()
[all …]
A Ddevice.c42 memset(&cdev->dx_ctx, 0, sizeof(cdev->dx_ctx)); in catpt_suspend()
43 ret = catpt_ipc_enter_dxstate(cdev, CATPT_DX_STATE_D3, &cdev->dx_ctx); in catpt_suspend()
102 ret = catpt_ipc_set_device_format(cdev, &cdev->devfmt[i]); in catpt_resume()
216 cdev->dev = dev; in catpt_dev_init()
217 cdev->spec = spec; in catpt_dev_init()
241 struct catpt_dev *cdev; in catpt_acpi_probe() local
261 cdev = devm_kzalloc(dev, sizeof(*cdev), GFP_KERNEL); in catpt_acpi_probe()
262 if (!cdev) in catpt_acpi_probe()
279 cdev->dxbuf_vaddr = dmam_alloc_coherent(dev, catpt_dram_size(cdev), in catpt_acpi_probe()
281 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.c285 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
351 if (IS_PF(cdev) && !cdev->pci_params.pm_cap) in qed_init_pci()
380 cdev->doorbells = ioremap_wc(cdev->db_phys_addr, cdev->db_size); in qed_init_pci()
492 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in qed_alloc_cdev()
772 struct qed_dev *cdev = hwfn->cdev; in qed_slowpath_irq_req() local
796 flags, cdev->name, cdev); in qed_slowpath_irq_req()
823 struct qed_dev *cdev = p_hwfn->cdev; in qed_slowpath_irq_sync() local
850 free_irq(cdev->pdev->irq, cdev); in qed_slowpath_irq_free()
1123 if (cdev->num_hwfns > 1 || IS_VF(cdev)) in qed_update_pf_params()
1411 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.c678 cdev->gadget->ops->get_config_params(cdev->gadget, in bos_desc()
974 config->cdev = cdev; in usb_add_config_only()
1941 if (cdev->use_os_string && cdev->os_desc_config && in composite_setup()
2105 cdev->driver->disconnect(cdev); in __composite_disconnect()
2158 cdev->driver->unbind(cdev); in __composite_unbind()
2233 cdev->req->context = cdev; in composite_dev_prepare()
2278 cdev->os_desc_req->context = cdev; in composite_os_desc_req_prepare()
2304 usb_ep_dequeue(cdev->gadget->ep0, cdev->req); in composite_dev_cleanup()
2337 cdev = kzalloc(sizeof *cdev, GFP_KERNEL); in composite_bind()
2397 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.c88 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
99 cdev->client->ops->virtchnl_receive(&cdev->lan_info, cdev->client, in i40e_notify_client_of_vf_msg()
115 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()
173 if (!cdev || !cdev->client) in i40e_notify_client_of_netdev_close()
180 cdev->client->ops->close(&cdev->lan_info, cdev->client, reset); in i40e_notify_client_of_netdev_close()
196 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_reset()
221 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_enable()
249 if (!cdev || !cdev->client) in i40e_vf_client_capable()
270 if (!cdev || !cdev->client) in i40e_client_update_msix_info()
[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
689 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ssam_dbg_device_probe()
690 if (!cdev) in ssam_dbg_device_probe()
695 cdev->ctrl = ctrl; in ssam_dbg_device_probe()
709 kfree(cdev); in ssam_dbg_device_probe()
753 cdev->ctrl = NULL; in ssam_dbg_device_remove()
[all …]
/linux/drivers/s390/block/
A Ddasd_3990_erp.c119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
171 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path()
208 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL()
1010 dev_err(&device->cdev->dev, in dasd_3990_handle_env_data()
1284 dev_err(&device->cdev->dev, in dasd_3990_erp_inv_format()
1312 dev_err(&device->cdev->dev, in dasd_3990_erp_EOC()
1378 dev_err(&device->cdev->dev, in dasd_3990_erp_no_rec()
1410 dev_err(&device->cdev->dev, in dasd_3990_erp_file_prot()
2012 dev_err(&device->cdev->dev, in dasd_3990_erp_compound_config()
2218 dev_err(&device->cdev->dev, in dasd_3990_erp_disable_path()
[all …]

Completed in 92 milliseconds

12345678910>>...54