Home
last modified time | relevance | path

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

12345678910>>...23

/Linux-v5.4/drivers/s390/cio/
Ddevice_fsm.c37 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log() argument
45 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
56 dev_name(&cdev->dev)); in ccw_timeout_log()
73 cdev->private->dma_area->iccws) in ccw_timeout_log()
84 cdev->private->state); in ccw_timeout_log()
91 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log()
101 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local
103 spin_lock_irq(cdev->ccwlock); in ccw_device_timeout()
105 ccw_timeout_log(cdev); in ccw_device_timeout()
106 dev_fsm_event(cdev, DEV_EVENT_TIMEOUT); in ccw_device_timeout()
[all …]
Ddevice.c63 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match() local
70 found = ccw_device_id_match(ids, &cdev->id); in ccw_bus_match()
74 cdev->id.driver_info = found->driver_info; in ccw_bus_match()
106 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent() local
107 struct ccw_device_id *id = &(cdev->id); in ccw_uevent()
154 struct ccw_device *cdev; in io_subchannel_prepare() local
159 cdev = sch_get_cdev(sch); in io_subchannel_prepare()
160 if (cdev && !device_is_registered(&cdev->dev)) in io_subchannel_prepare()
214 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show() local
215 struct ccw_device_id *id = &(cdev->id); in devtype_show()
[all …]
Ddevice_pgid.c28 static void verify_start(struct ccw_device *cdev);
33 static void verify_done(struct ccw_device *cdev, int rc) in verify_done() argument
35 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done()
36 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done()
37 int mpath = cdev->private->flags.mpath; in verify_done()
38 int pgroup = cdev->private->flags.pgroup; in verify_done()
51 ccw_device_verify_done(cdev, rc); in verify_done()
57 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp() argument
59 struct ccw_request *req = &cdev->private->req; in nop_build_cp()
60 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp()
[all …]
Ddevice_ops.c39 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask() argument
47 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask()
48 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask()
49 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask()
50 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask()
51 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask()
64 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options() argument
72 cdev->private->options.repall) || in ccw_device_set_options()
74 cdev->private->options.fast)) in ccw_device_set_options()
76 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options()
[all …]
Dccwreq.c41 static u16 ccwreq_next_path(struct ccw_device *cdev) in ccwreq_next_path() argument
43 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path()
58 static void ccwreq_stop(struct ccw_device *cdev, int rc) in ccwreq_stop() argument
60 struct ccw_request *req = &cdev->private->req; in ccwreq_stop()
65 ccw_device_set_timeout(cdev, 0); in ccwreq_stop()
66 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_stop()
69 req->callback(cdev, req->data, rc); in ccwreq_stop()
75 static void ccwreq_do(struct ccw_device *cdev) in ccwreq_do() argument
77 struct ccw_request *req = &cdev->private->req; in ccwreq_do()
78 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccwreq_do()
[all …]
Dcmf.c175 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib() argument
178 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib()
211 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait() argument
217 spin_lock_irq(cdev->ccwlock); in set_schib_wait()
218 if (!cdev->private->cmb) in set_schib_wait()
221 ret = set_schib(cdev, mme, mbfc, address); in set_schib_wait()
226 if (cdev->private->state != DEV_STATE_ONLINE) in set_schib_wait()
235 cdev->private->state = DEV_STATE_CMFCHANGE; in set_schib_wait()
236 cdev->private->cmb_wait = &set_data; in set_schib_wait()
237 spin_unlock_irq(cdev->ccwlock); in set_schib_wait()
[all …]
Ddevice_id.c99 static int diag210_get_dev_info(struct ccw_device *cdev) in diag210_get_dev_info() argument
101 struct ccw_dev_id *dev_id = &cdev->private->dev_id; in diag210_get_dev_info()
102 struct senseid *senseid = &cdev->private->dma_area->senseid; in diag210_get_dev_info()
134 static void snsid_init(struct ccw_device *cdev) in snsid_init() argument
136 cdev->private->flags.esid = 0; in snsid_init()
138 memset(&cdev->private->dma_area->senseid, 0, in snsid_init()
139 sizeof(cdev->private->dma_area->senseid)); in snsid_init()
140 cdev->private->dma_area->senseid.cu_type = 0xffff; in snsid_init()
146 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check() argument
148 struct cmd_scsw *scsw = &cdev->private->dma_area->irb.scsw.cmd; in snsid_check()
[all …]
/Linux-v5.4/drivers/misc/mic/cosm/
Dcosm_main.c30 static void cosm_hw_reset(struct cosm_device *cdev, bool force) in cosm_hw_reset() argument
35 if (force && cdev->hw_ops->force_reset) in cosm_hw_reset()
36 cdev->hw_ops->force_reset(cdev); in cosm_hw_reset()
38 cdev->hw_ops->reset(cdev); in cosm_hw_reset()
41 if (cdev->hw_ops->ready(cdev)) { in cosm_hw_reset()
42 cosm_set_state(cdev, MIC_READY); in cosm_hw_reset()
52 cosm_set_state(cdev, MIC_RESET_FAILED); in cosm_hw_reset()
62 int cosm_start(struct cosm_device *cdev) in cosm_start() argument
68 mutex_lock(&cdev->cosm_mutex); in cosm_start()
69 if (!cdev->bootmode) { in cosm_start()
[all …]
Dcosm_sysfs.c37 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 shutdown_status) in cosm_set_shutdown_status() argument
39 dev_dbg(&cdev->dev, "Shutdown Status %s -> %s\n", in cosm_set_shutdown_status()
40 cosm_shutdown_status_string[cdev->shutdown_status], in cosm_set_shutdown_status()
42 cdev->shutdown_status = shutdown_status; in cosm_set_shutdown_status()
45 void cosm_set_state(struct cosm_device *cdev, u8 state) in cosm_set_state() argument
47 dev_dbg(&cdev->dev, "State %s -> %s\n", in cosm_set_state()
48 cosm_state_string[cdev->state], in cosm_set_state()
50 cdev->state = state; in cosm_set_state()
51 sysfs_notify_dirent(cdev->state_sysfs); in cosm_set_state()
57 struct cosm_device *cdev = dev_get_drvdata(dev); in family_show() local
[all …]
Dcosm_scif_server.c95 static void cosm_update_mic_status(struct cosm_device *cdev) in cosm_update_mic_status() argument
97 if (cdev->shutdown_status_int != MIC_NOP) { in cosm_update_mic_status()
98 cosm_set_shutdown_status(cdev, cdev->shutdown_status_int); in cosm_update_mic_status()
99 cdev->shutdown_status_int = MIC_NOP; in cosm_update_mic_status()
104 static void cosm_shutdown_status_int(struct cosm_device *cdev, in cosm_shutdown_status_int() argument
114 dev_err(&cdev->dev, "%s %d Unexpected shutdown_status %d\n", in cosm_shutdown_status_int()
118 cdev->shutdown_status_int = shutdown_status; in cosm_shutdown_status_int()
119 cdev->heartbeat_watchdog_enable = false; in cosm_shutdown_status_int()
121 if (cdev->state != MIC_SHUTTING_DOWN) in cosm_shutdown_status_int()
122 cosm_set_state(cdev, MIC_SHUTTING_DOWN); in cosm_shutdown_status_int()
[all …]
Dcosm_debugfs.c28 struct cosm_device *cdev = s->private; in log_buf_show() local
33 if (!cdev || !cdev->log_buf_addr || !cdev->log_buf_len) in log_buf_show()
36 mutex_lock(&cdev->cosm_mutex); in log_buf_show()
37 switch (cdev->state) { in log_buf_show()
50 aper_offset = (u64)cdev->log_buf_len - __START_KERNEL_map; in log_buf_show()
51 log_buf_len_va = cdev->hw_ops->aper(cdev)->va + aper_offset; in log_buf_show()
52 aper_offset = (u64)cdev->log_buf_addr - __START_KERNEL_map; in log_buf_show()
53 log_buf_va = cdev->hw_ops->aper(cdev)->va + aper_offset; in log_buf_show()
64 mutex_unlock(&cdev->cosm_mutex); in log_buf_show()
79 struct cosm_device *cdev = s->private; in force_reset_show() local
[all …]
/Linux-v5.4/sound/usb/caiaq/
Daudio.c30 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument
31 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
51 activate_substream(struct snd_usb_caiaqdev *cdev, in activate_substream() argument
54 spin_lock(&cdev->spinlock); in activate_substream()
57 cdev->sub_playback[sub->number] = sub; in activate_substream()
59 cdev->sub_capture[sub->number] = sub; in activate_substream()
61 spin_unlock(&cdev->spinlock); in activate_substream()
65 deactivate_substream(struct snd_usb_caiaqdev *cdev, in deactivate_substream() argument
69 spin_lock_irqsave(&cdev->spinlock, flags); in deactivate_substream()
72 cdev->sub_playback[sub->number] = NULL; in deactivate_substream()
[all …]
Ddevice.c149 struct snd_usb_caiaqdev *cdev = urb->context; in usb_ep1_command_reply_dispatch() local
152 if (urb->status || !cdev) { in usb_ep1_command_reply_dispatch()
159 memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec)); in usb_ep1_command_reply_dispatch()
160 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
163 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
164 cdev->spec.num_analog_audio_in, in usb_ep1_command_reply_dispatch()
165 cdev->spec.num_analog_audio_out, in usb_ep1_command_reply_dispatch()
166 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
167 cdev->spec.num_midi_out, in usb_ep1_command_reply_dispatch()
168 cdev->spec.data_alignment); in usb_ep1_command_reply_dispatch()
[all …]
Dinput.c190 static inline void snd_caiaq_input_report_abs(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_report_abs() argument
194 input_report_abs(cdev->input_dev, axis, in snd_caiaq_input_report_abs()
198 static void snd_caiaq_input_read_analog(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_read_analog() argument
202 struct input_dev *input_dev = cdev->input_dev; in snd_caiaq_input_read_analog()
204 switch (cdev->chip.usb_id) { in snd_caiaq_input_read_analog()
206 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog()
207 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog()
208 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog()
213 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog()
214 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog()
[all …]
Dmidi.c28 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_input_trigger() local
30 if (!cdev) in snd_usb_caiaq_midi_input_trigger()
33 cdev->midi_receive_substream = up ? substream : NULL; in snd_usb_caiaq_midi_input_trigger()
44 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_output_close() local
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()
52 static void snd_usb_caiaq_midi_send(struct snd_usb_caiaqdev *cdev, in snd_usb_caiaq_midi_send() argument
56 struct device *dev = caiaqdev_to_dev(cdev); in snd_usb_caiaq_midi_send()
58 cdev->midi_out_buf[0] = EP1_CMD_MIDI_WRITE; in snd_usb_caiaq_midi_send()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_main.c110 static int qed_set_coherency_mask(struct qed_dev *cdev) in qed_set_coherency_mask() argument
112 struct device *dev = &cdev->pdev->dev; in qed_set_coherency_mask()
116 DP_NOTICE(cdev, in qed_set_coherency_mask()
121 DP_NOTICE(cdev, "Can't request 64b/32b DMA addresses\n"); in qed_set_coherency_mask()
128 static void qed_free_pci(struct qed_dev *cdev) in qed_free_pci() argument
130 struct pci_dev *pdev = cdev->pdev; in qed_free_pci()
132 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
133 iounmap(cdev->doorbells); in qed_free_pci()
134 if (cdev->regview) in qed_free_pci()
135 iounmap(cdev->regview); in qed_free_pci()
[all …]
Dqed_debug.h23 int qed_dbg_grc(struct qed_dev *cdev, void *buffer, u32 *num_dumped_bytes);
24 int qed_dbg_grc_size(struct qed_dev *cdev);
25 int qed_dbg_idle_chk(struct qed_dev *cdev, void *buffer,
27 int qed_dbg_idle_chk_size(struct qed_dev *cdev);
28 int qed_dbg_reg_fifo(struct qed_dev *cdev, void *buffer,
30 int qed_dbg_reg_fifo_size(struct qed_dev *cdev);
31 int qed_dbg_igu_fifo(struct qed_dev *cdev, void *buffer,
33 int qed_dbg_igu_fifo_size(struct qed_dev *cdev);
34 int qed_dbg_protection_override(struct qed_dev *cdev, void *buffer,
36 int qed_dbg_protection_override_size(struct qed_dev *cdev);
[all …]
/Linux-v5.4/drivers/net/can/m_can/
Dm_can.c323 static inline u32 m_can_read(struct m_can_classdev *cdev, enum m_can_reg reg) in m_can_read() argument
325 return cdev->ops->read_reg(cdev, reg); in m_can_read()
328 static inline void m_can_write(struct m_can_classdev *cdev, enum m_can_reg reg, in m_can_write() argument
331 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
334 static u32 m_can_fifo_read(struct m_can_classdev *cdev, in m_can_fifo_read() argument
337 u32 addr_offset = cdev->mcfg[MRAM_RXF0].off + fgi * RXF0_ELEMENT_SIZE + in m_can_fifo_read()
340 return cdev->ops->read_fifo(cdev, addr_offset); in m_can_fifo_read()
343 static void m_can_fifo_write(struct m_can_classdev *cdev, in m_can_fifo_write() argument
346 u32 addr_offset = cdev->mcfg[MRAM_TXB].off + fpi * TXB_ELEMENT_SIZE + in m_can_fifo_write()
349 cdev->ops->write_fifo(cdev, addr_offset, val); in m_can_fifo_write()
[all …]
/Linux-v5.4/drivers/usb/gadget/
Dcomposite.c229 struct usb_composite_dev *cdev; in config_ep_by_speed() local
231 cdev = get_gadget_data(g); in config_ep_by_speed()
232 ERROR(cdev, "ep0 bMaxBurst must be 0\n"); in config_ep_by_speed()
261 DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n", in usb_add_function()
303 DBG(config->cdev, "adding '%s'/%p --> %d\n", in usb_add_function()
345 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local
349 spin_lock_irqsave(&cdev->lock, flags); in usb_function_deactivate()
351 if (cdev->deactivations == 0) in usb_function_deactivate()
352 status = usb_gadget_deactivate(cdev->gadget); in usb_function_deactivate()
354 cdev->deactivations++; in usb_function_deactivate()
[all …]
/Linux-v5.4/drivers/misc/
Denclosure.c171 device_unregister(&edev->component[i].cdev); in enclosure_unregister()
182 static void enclosure_link_name(struct enclosure_component *cdev, char *name) in enclosure_link_name() argument
185 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name()
188 static void enclosure_remove_links(struct enclosure_component *cdev) in enclosure_remove_links() argument
192 enclosure_link_name(cdev, name); in enclosure_remove_links()
198 if (cdev->dev->kobj.sd) in enclosure_remove_links()
199 sysfs_remove_link(&cdev->dev->kobj, name); in enclosure_remove_links()
201 if (cdev->cdev.kobj.sd) in enclosure_remove_links()
202 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links()
205 static int enclosure_add_links(struct enclosure_component *cdev) in enclosure_add_links() argument
[all …]
/Linux-v5.4/drivers/crypto/chelsio/chtls/
Dchtls_main.c61 ret = chtls_listen_start(clisten->cdev, clisten->sk); in listen_notify_handler()
65 chtls_listen_stop(clisten->cdev, clisten->sk); in listen_notify_handler()
84 static int chtls_start_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_start_listen() argument
100 clisten->cdev = cdev; in chtls_start_listen()
109 static void chtls_stop_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_stop_listen() argument
119 clisten->cdev = cdev; in chtls_stop_listen()
130 struct chtls_dev *cdev; in chtls_inline_feature() local
133 cdev = to_chtls_dev(dev); in chtls_inline_feature()
135 for (i = 0; i < cdev->lldi->nports; i++) { in chtls_inline_feature()
136 netdev = cdev->ports[i]; in chtls_inline_feature()
[all …]
/Linux-v5.4/include/linux/qed/
Dqed_eth_if.h231 int (*ieee_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
232 int (*ieee_setpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
233 int (*ieee_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
234 int (*ieee_setets)(struct qed_dev *cdev, struct ieee_ets *ets);
235 int (*ieee_peer_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
236 int (*ieee_peer_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
237 int (*ieee_getapp)(struct qed_dev *cdev, struct dcb_app *app);
238 int (*ieee_setapp)(struct qed_dev *cdev, struct dcb_app *app);
241 u8 (*getstate)(struct qed_dev *cdev);
242 u8 (*setstate)(struct qed_dev *cdev, u8 state);
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_client.c87 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() local
89 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
91 if (!cdev->client->ops || !cdev->client->ops->virtchnl_receive) { in i40e_notify_client_of_vf_msg()
96 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { in i40e_notify_client_of_vf_msg()
100 cdev->client->ops->virtchnl_receive(&cdev->lan_info, cdev->client, in i40e_notify_client_of_vf_msg()
113 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() local
116 if (!cdev || !cdev->client) in i40e_notify_client_of_l2_param_changes()
118 if (!cdev->client->ops || !cdev->client->ops->l2_param_change) { in i40e_notify_client_of_l2_param_changes()
123 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { in i40e_notify_client_of_l2_param_changes()
129 memcpy(&cdev->lan_info.params, &params, sizeof(struct i40e_params)); in i40e_notify_client_of_l2_param_changes()
[all …]
/Linux-v5.4/drivers/s390/scsi/
Dzfcp_ccw.c21 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev() argument
27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev()
49 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument
51 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate()
98 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument
112 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument
120 ccw_device_set_offline(cdev); in zfcp_ccw_remove()
122 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove()
159 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument
161 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online()
[all …]
/Linux-v5.4/net/atm/
Datm_sysfs.c14 static ssize_t show_type(struct device *cdev, in show_type() argument
17 struct atm_dev *adev = to_atm_dev(cdev); in show_type()
22 static ssize_t show_address(struct device *cdev, in show_address() argument
25 struct atm_dev *adev = to_atm_dev(cdev); in show_address()
30 static ssize_t show_atmaddress(struct device *cdev, in show_atmaddress() argument
34 struct atm_dev *adev = to_atm_dev(cdev); in show_atmaddress()
59 static ssize_t show_atmindex(struct device *cdev, in show_atmindex() argument
62 struct atm_dev *adev = to_atm_dev(cdev); in show_atmindex()
67 static ssize_t show_carrier(struct device *cdev, in show_carrier() argument
70 struct atm_dev *adev = to_atm_dev(cdev); in show_carrier()
[all …]

12345678910>>...23