Home
last modified time | relevance | path

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

12345678910>>...18

/linux/drivers/s390/cio/
H A Ddevice_fsm.c39 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log() argument
47 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
58 dev_name(&cdev->dev)); in ccw_timeout_log()
75 cdev->private->dma_area->iccws) in ccw_timeout_log()
86 cdev->private->state); in ccw_timeout_log()
93 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log()
103 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local
105 spin_lock_irq(cdev->ccwlock); in ccw_device_timeout()
107 ccw_timeout_log(cdev); in ccw_device_timeout()
108 dev_fsm_event(cdev, DEV_EVENT_TIMEOUT); in ccw_device_timeout()
[all …]
H A Ddevice_pgid.c29 static void verify_start(struct ccw_device *cdev);
34 static void verify_done(struct ccw_device *cdev, int rc) in verify_done() argument
36 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done()
37 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done()
38 int mpath = cdev->private->flags.mpath; in verify_done()
39 int pgroup = cdev->private->flags.pgroup; in verify_done()
52 ccw_device_verify_done(cdev, rc); in verify_done()
58 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp() argument
60 struct ccw_request *req = &cdev->private->req; in nop_build_cp()
61 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp()
[all …]
H A Dcmf.c176 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib() argument
179 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib()
212 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait() argument
218 spin_lock_irq(cdev->ccwlock); in set_schib_wait()
219 if (!cdev->private->cmb) in set_schib_wait()
222 ret = set_schib(cdev, mme, mbfc, address); in set_schib_wait()
227 if (cdev->private->state != DEV_STATE_ONLINE) in set_schib_wait()
236 cdev->private->state = DEV_STATE_CMFCHANGE; in set_schib_wait()
237 cdev->private->cmb_wait = &set_data; in set_schib_wait()
238 spin_unlock_irq(cdev->ccwlock); in set_schib_wait()
[all …]
/linux/sound/usb/caiaq/
H A 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 guard(spinlock)(&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()
63 deactivate_substream(struct snd_usb_caiaqdev *cdev, in deactivate_substream() argument
66 guard(spinlock_irqsave)(&cdev->spinlock); in deactivate_substream()
69 cdev->sub_playback[sub->number] = NULL; in deactivate_substream()
71 cdev->sub_capture[sub->number] = NULL; in deactivate_substream()
[all …]
H A Ddevice.c135 struct snd_usb_caiaqdev *cdev = urb->context; in usb_ep1_command_reply_dispatch() local
140 if (urb->status || !cdev) { in usb_ep1_command_reply_dispatch()
153 memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec)); in usb_ep1_command_reply_dispatch()
154 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
157 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
158 cdev->spec.num_analog_audio_in, in usb_ep1_command_reply_dispatch()
159 cdev->spec.num_analog_audio_out, in usb_ep1_command_reply_dispatch()
160 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
161 cdev->spec.num_midi_out, in usb_ep1_command_reply_dispatch()
162 cdev->spec.data_alignment); in usb_ep1_command_reply_dispatch()
[all …]
H A 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()
208 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog()
209 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog()
210 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog()
217 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog()
218 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog()
[all …]
H A 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/drivers/net/can/m_can/
H A Dm_can.c331 static inline u32 m_can_read(struct m_can_classdev *cdev, enum m_can_reg reg) in m_can_read() argument
333 return cdev->ops->read_reg(cdev, reg); in m_can_read()
336 static inline void m_can_write(struct m_can_classdev *cdev, enum m_can_reg reg, in m_can_write() argument
339 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
343 m_can_fifo_read(struct m_can_classdev *cdev, in m_can_fifo_read() argument
346 u32 addr_offset = cdev->mcfg[MRAM_RXF0].off + fgi * RXF0_ELEMENT_SIZE + in m_can_fifo_read()
352 return cdev->ops->read_fifo(cdev, addr_offset, val, val_count); in m_can_fifo_read()
356 m_can_fifo_write(struct m_can_classdev *cdev, in m_can_fifo_write() argument
359 u32 addr_offset = cdev->mcfg[MRAM_TXB].off + fpi * TXB_ELEMENT_SIZE + in m_can_fifo_write()
365 return cdev->ops->write_fifo(cdev, addr_offset, val, val_count); in m_can_fifo_write()
[all …]
/linux/sound/soc/intel/catpt/
H A Ddsp.c30 struct dma_chan *catpt_dma_request_config_chan(struct catpt_dev *cdev) in catpt_dma_request_config_chan()
40 chan = dma_request_channel(mask, catpt_dma_filter, cdev->dev); in catpt_dma_request_config_chan()
42 dev_err(cdev->dev, "request channel failed\n"); in catpt_dma_request_config_chan()
54 dev_err(cdev->dev, "slave config failed: %d\n", ret); in catpt_dma_request_config_chan()
62 static int catpt_dma_memcpy(struct catpt_dev *cdev, struct dma_chan *chan, in catpt_dma_memcpy() argument
73 dev_err(cdev->dev, "prep dma memcpy failed\n"); in catpt_dma_memcpy()
78 catpt_updatel_shim(cdev, HMDC, in catpt_dma_memcpy()
84 dev_err(cdev->dev, "submit tx failed: %d\n", ret); in catpt_dma_memcpy()
93 catpt_updatel_shim(cdev, HMDC, in catpt_dma_memcpy()
99 int catpt_dma_memcpy_todsp(struct catpt_dev *cdev, struc argument
29 catpt_dma_request_config_chan(struct catpt_dev * cdev) catpt_dma_request_config_chan() argument
107 catpt_dma_memcpy_fromdsp(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t dst_addr,dma_addr_t src_addr,size_t size) catpt_dma_memcpy_fromdsp() argument
115 catpt_dmac_probe(struct catpt_dev * cdev) catpt_dmac_probe() argument
140 catpt_dmac_remove(struct catpt_dev * cdev) catpt_dmac_remove() argument
151 catpt_dsp_set_srampge(struct catpt_dev * cdev,struct resource * sram,unsigned long mask,unsigned long new) catpt_dsp_set_srampge() argument
186 catpt_dsp_update_srampge(struct catpt_dev * cdev,struct resource * sram,unsigned long mask) catpt_dsp_update_srampge() argument
214 catpt_dsp_stall(struct catpt_dev * cdev,bool stall) catpt_dsp_stall() argument
226 catpt_dsp_reset(struct catpt_dev * cdev,bool reset) catpt_dsp_reset() argument
238 lpt_dsp_pll_shutdown(struct catpt_dev * cdev,bool enable) lpt_dsp_pll_shutdown() argument
246 wpt_dsp_pll_shutdown(struct catpt_dev * cdev,bool enable) wpt_dsp_pll_shutdown() argument
254 catpt_dsp_select_lpclock(struct catpt_dev * cdev,bool lp,bool waiti) catpt_dsp_select_lpclock() argument
310 catpt_dsp_update_lpclock(struct catpt_dev * cdev) catpt_dsp_update_lpclock() argument
322 catpt_dsp_set_regs_defaults(struct catpt_dev * cdev) catpt_dsp_set_regs_defaults() argument
354 catpt_dsp_power_down(struct catpt_dev * cdev) catpt_dsp_power_down() argument
399 catpt_dsp_power_up(struct catpt_dev * cdev) catpt_dsp_power_up() argument
453 catpt_coredump(struct catpt_dev * cdev) catpt_coredump() argument
[all...]
H A Ddevice.c30 struct catpt_dev *cdev = dev_get_drvdata(dev);
33 memset(&cdev->dx_ctx, 0, sizeof(cdev->dx_ctx)); in catpt_do_suspend() local
34 ret = catpt_ipc_enter_dxstate(cdev, CATPT_DX_STATE_D3, &cdev->dx_ctx); in catpt_do_suspend()
38 ret = catpt_store_firmware_context(cdev); in catpt_do_suspend()
42 return catpt_dsp_power_down(cdev); in catpt_do_suspend()
54 struct catpt_dev *cdev = dev_get_drvdata(dev); in catpt_do_suspend()
57 ret = catpt_dsp_power_up(cdev); in catpt_do_suspend()
67 ret = catpt_boot_firmware(cdev, tru in catpt_do_suspend()
84 struct catpt_dev *cdev = dev_get_drvdata(dev); catpt_resume() local
143 catpt_register_board(struct catpt_dev * cdev) catpt_register_board() argument
168 catpt_probe_components(struct catpt_dev * cdev) catpt_probe_components() argument
222 catpt_dev_init(struct catpt_dev * cdev,struct device * dev,const struct catpt_spec * spec) catpt_dev_init() argument
250 struct catpt_dev *cdev; catpt_acpi_probe() local
316 struct catpt_dev *cdev = platform_get_drvdata(pdev); catpt_acpi_remove() local
[all...]
H A Dloader.c84 static int catpt_store_streams_context(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_request_region()
89 list_for_each_entry(stream, &cdev->stream_list, node) { in catpt_store_streams_context() argument
95 dev_dbg(cdev->dev, "storing stream %d ctx: off 0x%08x size %d\n", in catpt_store_streams_context()
98 ret = catpt_dma_memcpy_fromdsp(cdev, chan, in catpt_store_streams_context()
99 cdev->dxbuf_paddr + off, in catpt_store_streams_context()
100 cdev->lpe_base + off, in catpt_store_streams_context()
103 dev_err(cdev->dev, "memcpy fromdsp failed: %d\n", ret); in catpt_store_streams_context()
111 static int catpt_store_module_states(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_streams_context()
115 for (i = 0; i < ARRAY_SIZE(cdev->modules); i++) { in catpt_store_module_states() argument
120 type = &cdev in catpt_store_module_states()
145 catpt_store_memdumps(struct catpt_dev * cdev,struct dma_chan * chan) catpt_store_memdumps() argument
179 catpt_restore_streams_context(struct catpt_dev * cdev,struct dma_chan * chan) catpt_restore_streams_context() argument
205 catpt_restore_memdumps(struct catpt_dev * cdev,struct dma_chan * chan) catpt_restore_memdumps() argument
238 catpt_restore_fwimage(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_block_hdr * blk) catpt_restore_fwimage() argument
289 catpt_load_block(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_block_hdr * blk,bool alloc) catpt_load_block() argument
328 catpt_restore_basefw(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_mod_hdr * basefw) catpt_restore_basefw() argument
371 catpt_restore_module(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_mod_hdr * mod) catpt_restore_module() argument
412 catpt_load_module(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_mod_hdr * mod) catpt_load_module() argument
459 catpt_restore_firmware(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_hdr * fw) catpt_restore_firmware() argument
505 catpt_load_firmware(struct catpt_dev * cdev,struct dma_chan * chan,dma_addr_t paddr,struct catpt_fw_hdr * fw) catpt_load_firmware() argument
541 catpt_load_image(struct catpt_dev * cdev,struct dma_chan * chan,const char * name,const char * signature,bool restore) catpt_load_image() argument
581 catpt_load_images(struct catpt_dev * cdev,bool restore) catpt_load_images() argument
609 catpt_boot_firmware(struct catpt_dev * cdev,bool restore) catpt_boot_firmware() argument
638 catpt_first_boot_firmware(struct catpt_dev * cdev) catpt_first_boot_firmware() argument
[all...]
H A Dregisters.h138 #define catpt_num_dram(cdev) (hweight_long((cdev)->spec->dram_mask))
139 #define catpt_num_iram(cdev) (hweight_long((cdev)->spec->iram_mask))
140 #define catpt_dram_size(cdev) (catpt_num_dram(cdev) * CATPT_MEMBLOCK_SIZE) argument
141 #define catpt_iram_size(cdev) (catpt_num_iram(cdev) * CATPT_MEMBLOCK_SIZE)
145 #define catpt_dram_addr(cdev) \
146 ((cdev) argument
133 catpt_num_dram(cdev) global() argument
134 catpt_num_iram(cdev) global() argument
135 catpt_dram_size(cdev) global() argument
136 catpt_iram_size(cdev) global() argument
142 catpt_dma_addr(cdev,dma) global() argument
144 catpt_ssp_addr(cdev,ssp) global() argument
148 catpt_outbox_addr(cdev) global() argument
151 catpt_writel_ssp(cdev,ssp,reg,val) global() argument
154 catpt_readl_shim(cdev,reg) global() argument
156 catpt_writel_shim(cdev,reg,val) global() argument
158 catpt_updatel_shim(cdev,reg,mask,val) global() argument
162 catpt_readl_poll_shim(cdev,reg,val,cond,delay_us,timeout_us) global() argument
166 catpt_readl_pci(cdev,reg) global() argument
168 catpt_writel_pci(cdev,reg,val) global() argument
170 catpt_updatel_pci(cdev,reg,mask,val) global() argument
174 catpt_readl_poll_pci(cdev,reg,val,cond,delay_us,timeout_us) global() argument
[all...]
H A Dipc.c56 static void catpt_dsp_send_tx(struct catpt_dev *cdev, in catpt_dsp_send_tx()
64 memcpy_toio(catpt_outbox_addr(cdev), tx->data, tx->size); in catpt_dsp_send_tx()
65 catpt_writel_shim(cdev, IPCC, header); in catpt_dsp_send_tx()
68 static int catpt_wait_msg_completion(struct catpt_dev *cdev, int timeout) in catpt_wait_msg_completion()
70 struct catpt_ipc *ipc = &cdev->ipc; in catpt_wait_msg_completion()
86 static int catpt_dsp_do_send_msg(struct catpt_dev *cdev, in catpt_dsp_do_send_msg()
90 struct catpt_ipc *ipc = &cdev->ipc; in catpt_dsp_do_send_msg()
102 catpt_dsp_send_tx(cdev, &request); in catpt_dsp_do_send_msg()
105 ret = catpt_wait_msg_completion(cdev, timeout); in catpt_dsp_do_send_msg()
107 dev_crit(cdev in catpt_dsp_do_send_msg()
55 catpt_dsp_send_tx(struct catpt_dev * cdev,const struct catpt_ipc_msg * tx) catpt_dsp_send_tx() argument
67 catpt_wait_msg_completion(struct catpt_dev * cdev,int timeout) catpt_wait_msg_completion() argument
85 catpt_dsp_do_send_msg(struct catpt_dev * cdev,struct catpt_ipc_msg request,struct catpt_ipc_msg * reply,int timeout) catpt_dsp_do_send_msg() argument
124 catpt_dsp_send_msg_timeout(struct catpt_dev * cdev,struct catpt_ipc_msg request,struct catpt_ipc_msg * reply,int timeout) catpt_dsp_send_msg_timeout() argument
138 catpt_dsp_send_msg(struct catpt_dev * cdev,struct catpt_ipc_msg request,struct catpt_ipc_msg * reply) catpt_dsp_send_msg() argument
146 catpt_dsp_notify_stream(struct catpt_dev * cdev,union catpt_notify_msg msg) catpt_dsp_notify_stream() argument
183 catpt_dsp_copy_rx(struct catpt_dev * cdev,u32 header) catpt_dsp_copy_rx() argument
195 catpt_dsp_process_response(struct catpt_dev * cdev,u32 header) catpt_dsp_process_response() argument
243 struct catpt_dev *cdev = dev_id; catpt_dsp_irq_thread() local
266 struct catpt_dev *cdev = dev_id; catpt_dsp_irq_handler() local
[all...]
H A Dcore.h74 void (*pll_shutdown)(struct catpt_dev *cdev, bool enable);
106 int catpt_dmac_probe(struct catpt_dev *cdev);
107 void catpt_dmac_remove(struct catpt_dev *cdev);
108 struct dma_chan *catpt_dma_request_config_chan(struct catpt_dev *cdev);
109 int catpt_dma_memcpy_todsp(struct catpt_dev *cdev, struct dma_chan *chan,
112 int catpt_dma_memcpy_fromdsp(struct catpt_dev *cdev, struct dma_chan *chan,
116 void lpt_dsp_pll_shutdown(struct catpt_dev *cdev, bool enable);
117 void wpt_dsp_pll_shutdown(struct catpt_dev *cdev, bool enable);
118 int catpt_dsp_power_up(struct catpt_dev *cdev);
119 int catpt_dsp_power_down(struct catpt_dev *cdev);
[all...]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_main.c257 static void qed_free_pci(struct qed_dev *cdev) in qed_free_pci() argument
259 struct pci_dev *pdev = cdev->pdev; in qed_free_pci()
261 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
262 iounmap(cdev->doorbells); in qed_free_pci()
263 if (cdev->regview) in qed_free_pci()
264 iounmap(cdev->regview); in qed_free_pci()
276 static int qed_init_pci(struct qed_dev *cdev, struct pci_dev *pdev) in qed_init_pci() argument
281 cdev->pdev = pdev; in qed_init_pci()
285 DP_NOTICE(cdev, "Cannot enable PCI device\n"); in qed_init_pci()
290 DP_NOTICE(cdev, "No memory region found in bar #0\n"); in qed_init_pci()
[all …]
H A Dqed_debug.h26 int qed_dbg_grc(struct qed_dev *cdev, void *buffer, u32 *num_dumped_bytes);
27 int qed_dbg_grc_size(struct qed_dev *cdev);
28 int qed_dbg_idle_chk(struct qed_dev *cdev, void *buffer,
30 int qed_dbg_idle_chk_size(struct qed_dev *cdev);
31 int qed_dbg_reg_fifo(struct qed_dev *cdev, void *buffer,
33 int qed_dbg_reg_fifo_size(struct qed_dev *cdev);
34 int qed_dbg_igu_fifo(struct qed_dev *cdev, void *buffer,
36 int qed_dbg_igu_fifo_size(struct qed_dev *cdev);
37 int qed_dbg_protection_override(struct qed_dev *cdev, void *buffer,
39 int qed_dbg_protection_override_size(struct qed_dev *cdev);
[all …]
/linux/drivers/usb/gadget/
H A Dcomposite.c164 struct usb_composite_dev *cdev; in config_ep_by_speed_and_alt() local
199 cdev = get_gadget_data(g); in config_ep_by_speed_and_alt()
201 WARNING(cdev, in config_ep_by_speed_and_alt()
261 ERROR(cdev, "ep0 bMaxBurst must be 0\n"); in config_ep_by_speed_and_alt()
315 DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n", in usb_add_function()
357 DBG(config->cdev, "adding '%s'/%p --> %d\n", in usb_add_function()
399 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local
403 spin_lock_irqsave(&cdev->lock, flags); in usb_function_deactivate()
405 if (cdev->deactivations == 0) { in usb_function_deactivate()
406 spin_unlock_irqrestore(&cdev->lock, flags); in usb_function_deactivate()
[all …]
/linux/drivers/misc/
H A Denclosure.c174 device_unregister(&edev->component[i].cdev); in enclosure_unregister()
185 static void enclosure_link_name(struct enclosure_component *cdev, char *name) in enclosure_link_name() argument
188 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name()
191 static void enclosure_remove_links(struct enclosure_component *cdev) in enclosure_remove_links() argument
195 enclosure_link_name(cdev, name); in enclosure_remove_links()
201 if (cdev->dev->kobj.sd) in enclosure_remove_links()
202 sysfs_remove_link(&cdev->dev->kobj, name); in enclosure_remove_links()
204 if (cdev->cdev.kobj.sd) in enclosure_remove_links()
205 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links()
208 static int enclosure_add_links(struct enclosure_component *cdev) in enclosure_add_links() argument
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_client.c85 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() local
87 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
89 if (!cdev->client->ops || !cdev->client->ops->virtchnl_receive) { in i40e_notify_client_of_vf_msg()
94 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { 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()
111 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() local
114 if (!cdev || !cdev->client) in i40e_notify_client_of_l2_param_changes()
116 if (!cdev->client->ops || !cdev->client->ops->l2_param_change) { in i40e_notify_client_of_l2_param_changes()
121 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { in i40e_notify_client_of_l2_param_changes()
128 memcpy(&cdev->lan_info.params, &params, sizeof(struct i40e_params)); in i40e_notify_client_of_l2_param_changes()
[all …]
/linux/include/linux/qed/
H A Dqed_eth_if.h194 int (*ieee_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
195 int (*ieee_setpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
196 int (*ieee_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
197 int (*ieee_setets)(struct qed_dev *cdev, struct ieee_ets *ets);
198 int (*ieee_peer_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
199 int (*ieee_peer_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc);
200 int (*ieee_getapp)(struct qed_dev *cdev, struct dcb_app *app);
201 int (*ieee_setapp)(struct qed_dev *cdev, struct dcb_app *app);
204 u8 (*getstate)(struct qed_dev *cdev);
205 u8 (*setstate)(struct qed_dev *cdev, u8 state);
[all …]
/linux/sound/soc/sof/
H A Dsof-client.c31 struct sof_client_dev *cdev; member
43 struct sof_client_dev *cdev; member
61 #define cdev_to_centry(cdev) \ argument
62 container_of(cdev, struct sof_client_dev_entry, client_dev)
67 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release() local
68 struct sof_client_dev_entry *centry = cdev_to_centry(cdev); in sof_client_auxdev_release()
70 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
74 static int sof_client_dev_add_data(struct sof_client_dev *cdev, const void *data, in sof_client_dev_add_data() argument
85 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
230 struct sof_client_dev *cdev; in sof_client_dev_register() local
[all …]
/linux/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c57 struct ssam_cdev *cdev; member
76 static struct ssam_cdev *ssam_cdev_get(struct ssam_cdev *cdev) in ssam_cdev_get() argument
78 if (cdev) in ssam_cdev_get()
79 kref_get(&cdev->kref); in ssam_cdev_get()
81 return cdev; in ssam_cdev_get()
84 static void ssam_cdev_put(struct ssam_cdev *cdev) in ssam_cdev_put() argument
86 if (cdev) in ssam_cdev_put()
87 kref_put(&cdev->kref, __ssam_cdev_release); in ssam_cdev_put()
111 dev_warn(client->cdev->dev, in ssam_cdev_notifier()
142 lockdep_assert_held_read(&client->cdev->lock); in ssam_cdev_notifier_register()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_idc.c21 ice_get_auxiliary_drv(struct iidc_rdma_core_dev_info *cdev) in ice_get_auxiliary_drv() argument
25 adev = cdev->adev; in ice_get_auxiliary_drv()
41 struct iidc_rdma_core_dev_info *cdev; in ice_send_event_to_aux() local
46 cdev = pf->cdev_info; in ice_send_event_to_aux()
47 if (!cdev) in ice_send_event_to_aux()
51 if (!cdev->adev) in ice_send_event_to_aux()
54 device_lock(&cdev->adev->dev); in ice_send_event_to_aux()
55 iadrv = ice_get_auxiliary_drv(cdev); in ice_send_event_to_aux()
57 iadrv->event_handler(cdev, event); in ice_send_event_to_aux()
58 device_unlock(&cdev->adev->dev); in ice_send_event_to_aux()
[all …]
/linux/drivers/thermal/
H A Dthermal_helpers.c43 struct thermal_cooling_device *cdev, in thermal_instance_present() argument
50 if (ti->cdev == cdev) in thermal_instance_present()
59 struct thermal_cooling_device *cdev) in thermal_trip_is_bound_to_cdev() argument
62 guard(cooling_dev)(cdev); in thermal_trip_is_bound_to_cdev()
64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev()
147 static int thermal_cdev_set_cur_state(struct thermal_cooling_device *cdev, int state) in thermal_cdev_set_cur_state() argument
155 ret = cdev->ops->set_cur_state(cdev, state); in thermal_cdev_set_cur_state()
159 thermal_notify_cdev_state_update(cdev, state); in thermal_cdev_set_cur_state()
160 thermal_cooling_device_stats_update(cdev, state); in thermal_cdev_set_cur_state()
161 thermal_debug_cdev_state_update(cdev, state); in thermal_cdev_set_cur_state()
[all …]
/linux/drivers/s390/block/
H A Ddasd_3990_erp.c76 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
78 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
115 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
148 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
149 opm = ccw_device_get_path_mask(device->cdev); in dasd_3990_erp_alternate_path()
150 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
167 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path()
204 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL()
407 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data()
411 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data()
[all …]

12345678910>>...18