| /linux/drivers/s390/cio/ |
| H A D | device_fsm.c | 39 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 D | device_pgid.c | 29 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 …]
|
| /linux/drivers/net/can/m_can/ |
| H A D | m_can.c | 331 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 D | dsp.c | 29 struct dma_chan *catpt_dma_request_config_chan(struct catpt_dev *cdev) in catpt_dma_request_config_chan() argument 39 chan = dma_request_channel(mask, catpt_dma_filter, cdev->dev); in catpt_dma_request_config_chan() 41 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, struct dma_chan *chan, in catpt_dma_memcpy_todsp() argument [all …]
|
| H A D | loader.c | 89 int catpt_store_streams_context(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_streams_context() argument 93 list_for_each_entry(stream, &cdev->stream_list, node) { in catpt_store_streams_context() 99 dev_dbg(cdev->dev, "storing stream %d ctx: off 0x%08x size %d\n", in catpt_store_streams_context() 102 ret = catpt_dma_memcpy_fromdsp(cdev, chan, in catpt_store_streams_context() 103 cdev->dxbuf_paddr + off, in catpt_store_streams_context() 104 cdev->lpe_base + off, in catpt_store_streams_context() 107 dev_err(cdev->dev, "memcpy fromdsp failed: %d\n", ret); in catpt_store_streams_context() 115 int catpt_store_module_states(struct catpt_dev *cdev, struct dma_chan *chan) in catpt_store_module_states() argument 119 for (i = 0; i < ARRAY_SIZE(cdev->modules); i++) { in catpt_store_module_states() 124 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 D | registers.h | 133 #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) 142 #define catpt_dma_addr(cdev, dma) \ argument 143 ((cdev)->lpe_ba + (cdev)->spec->host_dma_offset[dma]) 144 #define catpt_ssp_addr(cdev, ssp) \ argument 145 ((cdev)->lpe_ba + (cdev)->spec->host_ssp_offset[ssp]) [all …]
|
| H A D | ipc.c | 55 static void catpt_dsp_send_tx(struct catpt_dev *cdev, in catpt_dsp_send_tx() argument 63 memcpy_toio(catpt_outbox_addr(cdev), tx->data, tx->size); in catpt_dsp_send_tx() 64 catpt_writel_shim(cdev, IPCC, header); in catpt_dsp_send_tx() 67 static int catpt_wait_msg_completion(struct catpt_dev *cdev, int timeout) in catpt_wait_msg_completion() argument 69 struct catpt_ipc *ipc = &cdev->ipc; in catpt_wait_msg_completion() 85 static int catpt_dsp_do_send_msg(struct catpt_dev *cdev, in catpt_dsp_do_send_msg() argument 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() 104 ret = catpt_wait_msg_completion(cdev, timeout); in catpt_dsp_do_send_msg() 106 dev_crit(cdev->dev, "communication severed: %d, rebooting dsp..\n", in catpt_dsp_do_send_msg() [all …]
|
| H A D | core.h | 74 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 …]
|
| H A D | pcm.c | 101 catpt_stream_find(struct catpt_dev *cdev, u8 stream_hw_id) in catpt_stream_find() argument 105 spin_lock(&cdev->list_lock); in catpt_stream_find() 106 list_for_each_entry(pos, &cdev->stream_list, node) { in catpt_stream_find() 113 spin_unlock(&cdev->list_lock); in catpt_stream_find() 117 static u32 catpt_stream_read_position(struct catpt_dev *cdev, in catpt_stream_read_position() argument 122 memcpy_fromio(&pos, cdev->lpe_ba + stream->info.read_pos_regaddr, in catpt_stream_read_position() 127 static u32 catpt_stream_volume(struct catpt_dev *cdev, in catpt_stream_volume() argument 136 memcpy_fromio(&volume, cdev->lpe_ba + offset, sizeof(volume)); in catpt_stream_volume() 140 static u32 catpt_mixer_volume(struct catpt_dev *cdev, in catpt_mixer_volume() argument 149 memcpy_fromio(&volume, cdev in catpt_mixer_volume() 264 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_startup() local 310 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_shutdown() local 334 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_apply_usettings() local 382 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_hw_params() local 431 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_hw_free() local 448 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_prepare() local 472 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_trigger() local 521 catpt_stream_update_position(struct catpt_dev * cdev,struct catpt_stream_runtime * stream,struct catpt_notify_position * pos) catpt_stream_update_position() argument 584 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_component_pcm_construct() local 611 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_component_pointer() local 637 struct catpt_dev *cdev = dev_get_drvdata(dai->dev); catpt_dai_pcm_new() local 823 catpt_set_dspvol(struct catpt_dev * cdev,u8 stream_id,long * ctlvol) catpt_set_dspvol() argument 870 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_mixer_volume_get() local 894 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_mixer_volume_put() local 916 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_stream_volume_get() local 950 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_stream_volume_put() local 1027 struct catpt_dev *cdev = dev_get_drvdata(component->dev); catpt_loopback_switch_put() local 1148 catpt_arm_stream_templates(struct catpt_dev * cdev) catpt_arm_stream_templates() argument 1187 catpt_register_plat_component(struct catpt_dev * cdev) catpt_register_plat_component() argument [all...] |
| /linux/drivers/usb/gadget/ |
| H A D | composite.c | 164 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 D | enclosure.c | 174 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 D | i40e_client.c | 85 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, ¶ms, sizeof(struct i40e_params)); in i40e_notify_client_of_l2_param_changes() [all …]
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| H A D | chtls_main.c | 63 ret = chtls_listen_start(clisten->cdev, clisten->sk); in listen_notify_handler() 67 chtls_listen_stop(clisten->cdev, clisten->sk); in listen_notify_handler() 86 static int chtls_start_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_start_listen() argument 101 clisten->cdev = cdev; in chtls_start_listen() 110 static void chtls_stop_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_stop_listen() argument 120 clisten->cdev = cdev; in chtls_stop_listen() 131 struct chtls_dev *cdev; in chtls_inline_feature() local 134 cdev = to_chtls_dev(dev); in chtls_inline_feature() 136 for (i = 0; i < cdev->lldi->nports; i++) { in chtls_inline_feature() 137 netdev = cdev->ports[i]; in chtls_inline_feature() [all …]
|
| /linux/include/linux/qed/ |
| H A D | qed_eth_if.h | 194 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/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_debug.h | 26 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 …]
|
| H A D | qed_dev.c | 80 static bool qed_db_rec_sanity(struct qed_dev *cdev, in qed_db_rec_sanity() argument 88 if (db_addr < cdev->doorbells || in qed_db_rec_sanity() 90 (u8 __iomem *)cdev->doorbells + cdev->db_size) { in qed_db_rec_sanity() 94 cdev->doorbells, in qed_db_rec_sanity() 95 (u8 __iomem *)cdev->doorbells + cdev->db_size); in qed_db_rec_sanity() 109 static struct qed_hwfn *qed_db_rec_find_hwfn(struct qed_dev *cdev, in qed_db_rec_find_hwfn() argument 115 if (cdev->num_hwfns > 1) in qed_db_rec_find_hwfn() 116 p_hwfn = db_addr < cdev->hwfns[1].doorbells ? in qed_db_rec_find_hwfn() 117 &cdev->hwfns[0] : &cdev->hwfns[1]; in qed_db_rec_find_hwfn() 119 p_hwfn = QED_LEADING_HWFN(cdev); in qed_db_rec_find_hwfn() [all …]
|
| H A D | qed_dev_api.h | 26 void qed_init_dp(struct qed_dev *cdev, 38 void qed_init_struct(struct qed_dev *cdev); 47 void qed_resc_free(struct qed_dev *cdev); 56 int qed_resc_alloc(struct qed_dev *cdev); 65 void qed_resc_setup(struct qed_dev *cdev); 123 int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params); 132 void qed_hw_timers_stop_all(struct qed_dev *cdev); 141 int qed_hw_stop(struct qed_dev *cdev); 152 int qed_hw_stop_fastpath(struct qed_dev *cdev); 172 int qed_hw_prepare(struct qed_dev *cdev, [all …]
|
| /linux/sound/usb/caiaq/ |
| H A D | midi.c | 28 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 …]
|
| H A D | control.c | 24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() local 32 switch (cdev->chip.usb_id) { in control_info() 70 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_get() local 75 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get() 78 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get() 87 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_put() local 92 switch (cdev->chip.usb_id) { in control_put() 107 cdev->control_state[i] = v; in control_put() 109 if (cdev->chip.usb_id == in control_put() 113 cdev->ep8_out_buf[0] = i; in control_put() [all …]
|
| /linux/drivers/platform/surface/ |
| H A D | surface_aggregator_cdev.c | 57 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/s390/block/ |
| H A D | dasd_3990_erp.c | 76 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 …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_idc.c | 21 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/net/atm/ |
| H A D | atm_sysfs.c | 14 static ssize_t type_show(struct device *cdev, in type_show() argument 17 struct atm_dev *adev = to_atm_dev(cdev); in type_show() 22 static ssize_t address_show(struct device *cdev, in address_show() argument 25 struct atm_dev *adev = to_atm_dev(cdev); in address_show() 30 static ssize_t atmaddress_show(struct device *cdev, in atmaddress_show() argument 34 struct atm_dev *adev = to_atm_dev(cdev); in atmaddress_show() 53 static ssize_t atmindex_show(struct device *cdev, in atmindex_show() argument 56 struct atm_dev *adev = to_atm_dev(cdev); in atmindex_show() 61 static ssize_t carrier_show(struct device *cdev, in carrier_show() argument 64 struct atm_dev *adev = to_atm_dev(cdev); in carrier_show() [all …]
|
| /linux/drivers/thermal/ |
| H A D | thermal_helpers.c | 43 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/isdn/capi/ |
| H A D | capi.c | 113 struct capidev *cdev; member 300 static void capincci_alloc_minor(struct capidev *cdev, struct capincci *np) in capincci_alloc_minor() argument 302 if (cdev->userflags & CAPIFLAG_HIGHJACKING) in capincci_alloc_minor() 303 np->minorp = capiminor_alloc(&cdev->ap, np->ncci); in capincci_alloc_minor() 335 capincci_alloc_minor(struct capidev *cdev, struct capincci *np) { } in capincci_alloc_minor() argument 340 static struct capincci *capincci_alloc(struct capidev *cdev, u32 ncci) in capincci_alloc() argument 348 np->cdev = cdev; in capincci_alloc() 350 capincci_alloc_minor(cdev, np); in capincci_alloc() 352 list_add_tail(&np->list, &cdev->nccis); in capincci_alloc() 357 static void capincci_free(struct capidev *cdev, u32 ncci) in capincci_free() argument [all …]
|