Home
last modified time | relevance | path

Searched +full:dev +full:- +full:ctrl (Results 1 – 25 of 1041) sorted by relevance

12345678910>>...42

/linux/drivers/soundwire/
H A Dqcom.c1 // SPDX-License-Identifier: GPL-2.0
107 #define SWRM_DPn_PORT_CTRL_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
108 #define SWRM_DPn_PORT_CTRL_2_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
109 #define SWRM_DPn_BLOCK_CTRL_1(offset, n) (offset + 0x100 * (n - 1))
110 #define SWRM_DPn_BLOCK_CTRL2_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
111 #define SWRM_DPn_PORT_HCTRL_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
112 #define SWRM_DPn_BLOCK_CTRL3_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
113 #define SWRM_DPn_SAMPLECTRL2_BANK(offset, n, m) (offset + 0x100 * (n - 1) + 0x40 * m)
130 #define SWRM_REG_VAL_PACK(data, dev, id, reg) \ argument
131 ((reg) | ((id) << 16) | ((dev) << 20) | ((data) << 24))
[all …]
/linux/drivers/nvme/host/
H A Dsysfs.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2011-2014, Intel Corporation.
8 #include <linux/nvme-auth.h>
13 static ssize_t nvme_sysfs_reset(struct device *dev, in nvme_sysfs_reset() argument
17 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset() local
20 ret = nvme_reset_ctrl_sync(ctrl); in nvme_sysfs_reset()
27 static ssize_t nvme_sysfs_rescan(struct device *dev, in nvme_sysfs_rescan() argument
31 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan() local
33 nvme_queue_scan(ctrl); in nvme_sysfs_rescan()
38 static ssize_t nvme_adm_passthru_err_log_enabled_show(struct device *dev, in nvme_adm_passthru_err_log_enabled_show() argument
[all …]
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2011-2014, Intel Corporation.
10 #include <linux/blk-mq-dma.h>
11 #include <linux/blk-integrity.h>
25 #include <linux/t10-pi.h>
27 #include <linux/io-64-nonatomi
155 struct device *dev; global() member
171 struct nvme_ctrl ctrl; global() member
212 to_nvme_dev(struct nvme_ctrl * ctrl) to_nvme_dev() argument
222 struct nvme_dev *dev; global() member
305 nvme_dbbuf_size(struct nvme_dev * dev) nvme_dbbuf_size() argument
310 nvme_dbbuf_dma_alloc(struct nvme_dev * dev) nvme_dbbuf_dma_alloc() argument
347 nvme_dbbuf_dma_free(struct nvme_dev * dev) nvme_dbbuf_dma_free() argument
363 nvme_dbbuf_init(struct nvme_dev * dev,struct nvme_queue * nvmeq,int qid) nvme_dbbuf_init() argument
386 nvme_dbbuf_set(struct nvme_dev * dev) nvme_dbbuf_set() argument
446 nvme_setup_descriptor_pools(struct nvme_dev * dev,unsigned numa_node) nvme_setup_descriptor_pools() argument
473 nvme_release_descriptor_pools(struct nvme_dev * dev) nvme_release_descriptor_pools() argument
488 struct nvme_dev *dev = to_nvme_dev(data); nvme_init_hctx_common() local
528 queue_irq_offset(struct nvme_dev * dev) queue_irq_offset() argument
539 struct nvme_dev *dev = to_nvme_dev(set->driver_data); nvme_pci_map_queues() local
614 struct nvme_dev *dev = nvmeq->dev; nvme_pci_metadata_use_sgls() local
622 nvme_pci_use_sgls(struct nvme_dev * dev,struct request * req) nvme_pci_use_sgls() argument
1065 struct nvme_dev *dev = nvmeq->dev; nvme_map_data() local
1108 struct nvme_dev *dev = nvmeq->dev; nvme_pci_setup_meta_iter() local
1253 struct nvme_dev *dev = nvmeq->dev; nvme_queue_rq() local
1497 nvme_pci_submit_async_event(struct nvme_ctrl * ctrl) nvme_pci_submit_async_event() argument
1499 struct nvme_dev *dev = to_nvme_dev(ctrl); nvme_pci_submit_async_event() local
1512 nvme_pci_subsystem_reset(struct nvme_ctrl * ctrl) nvme_pci_subsystem_reset() argument
1514 struct nvme_dev *dev = to_nvme_dev(ctrl); nvme_pci_subsystem_reset() local
1547 adapter_delete_queue(struct nvme_dev * dev,u8 opcode,u16 id) adapter_delete_queue() argument
1557 adapter_alloc_cq(struct nvme_dev * dev,u16 qid,struct nvme_queue * nvmeq,s16 vector) adapter_alloc_cq() argument
1580 adapter_alloc_sq(struct nvme_dev * dev,u16 qid,struct nvme_queue * nvmeq) adapter_alloc_sq() argument
1583 struct nvme_ctrl *ctrl = &dev->ctrl; adapter_alloc_sq() local
1609 adapter_delete_cq(struct nvme_dev * dev,u16 cqid) adapter_delete_cq() argument
1614 adapter_delete_sq(struct nvme_dev * dev,u16 sqid) adapter_delete_sq() argument
1630 nvme_should_reset(struct nvme_dev * dev,u32 csts) nvme_should_reset() argument
1655 nvme_warn_reset(struct nvme_dev * dev,u32 csts) nvme_warn_reset() argument
1685 struct nvme_dev *dev = nvmeq->dev; nvme_timeout() local
1837 nvme_free_queues(struct nvme_dev * dev,int lowest) nvme_free_queues() argument
1847 nvme_suspend_queue(struct nvme_dev * dev,unsigned int qid) nvme_suspend_queue() argument
1864 nvme_suspend_io_queues(struct nvme_dev * dev) nvme_suspend_io_queues() argument
1878 nvme_reap_pending_cqes(struct nvme_dev * dev) nvme_reap_pending_cqes() argument
1889 nvme_cmb_qdepth(struct nvme_dev * dev,int nr_io_queues,int entry_size) nvme_cmb_qdepth() argument
1914 nvme_alloc_sq_cmds(struct nvme_dev * dev,struct nvme_queue * nvmeq,int qid) nvme_alloc_sq_cmds() argument
1940 nvme_alloc_queue(struct nvme_dev * dev,int qid,int depth) nvme_alloc_queue() argument
1991 struct nvme_dev *dev = nvmeq->dev; nvme_init_queue() local
2007 nvme_setup_io_queues_trylock(struct nvme_dev * dev) nvme_setup_io_queues_trylock() argument
2028 struct nvme_dev *dev = nvmeq->dev; nvme_create_queue() local
2098 nvme_dev_remove_admin(struct nvme_dev * dev) nvme_dev_remove_admin() argument
2111 db_bar_size(struct nvme_dev * dev,unsigned nr_io_queues) db_bar_size() argument
2116 nvme_remap_bar(struct nvme_dev * dev,unsigned long size) nvme_remap_bar() argument
2137 nvme_pci_configure_admin_queue(struct nvme_dev * dev) nvme_pci_configure_admin_queue() argument
2215 nvme_create_io_queues(struct nvme_dev * dev) nvme_create_io_queues() argument
2252 nvme_cmb_size_unit(struct nvme_dev * dev) nvme_cmb_size_unit() argument
2259 nvme_cmb_size(struct nvme_dev * dev) nvme_cmb_size() argument
2264 nvme_map_cmb(struct nvme_dev * dev) nvme_map_cmb() argument
2327 nvme_set_host_mem(struct nvme_dev * dev,u32 bits) nvme_set_host_mem() argument
2353 nvme_free_host_mem_multi(struct nvme_dev * dev) nvme_free_host_mem_multi() argument
2370 nvme_free_host_mem(struct nvme_dev * dev) nvme_free_host_mem() argument
2385 nvme_alloc_host_mem_single(struct nvme_dev * dev,u64 size) nvme_alloc_host_mem_single() argument
2411 nvme_alloc_host_mem_multi(struct nvme_dev * dev,u64 preferred,u32 chunk_size) nvme_alloc_host_mem_multi() argument
2472 nvme_alloc_host_mem(struct nvme_dev * dev,u64 min,u64 preferred) nvme_alloc_host_mem() argument
2500 nvme_setup_host_mem(struct nvme_dev * dev) nvme_setup_host_mem() argument
2550 cmb_show(struct device * dev,struct device_attribute * attr,char * buf) cmb_show() argument
2560 cmbloc_show(struct device * dev,struct device_attribute * attr,char * buf) cmbloc_show() argument
2569 cmbsz_show(struct device * dev,struct device_attribute * attr,char * buf) cmbsz_show() argument
2578 hmb_show(struct device * dev,struct device_attribute * attr,char * buf) hmb_show() argument
2586 hmb_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) hmb_store() argument
2617 struct nvme_ctrl *ctrl = nvme_pci_attrs_are_visible() local
2619 struct nvme_dev *dev = to_nvme_dev(ctrl); nvme_pci_attrs_are_visible() local
2652 nvme_update_attrs(struct nvme_dev * dev) nvme_update_attrs() argument
2663 struct nvme_dev *dev = affd->priv; nvme_calc_irq_sets() local
2695 nvme_setup_irqs(struct nvme_dev * dev,unsigned int nr_io_queues) nvme_setup_irqs() argument
2734 nvme_max_io_queues(struct nvme_dev * dev) nvme_max_io_queues() argument
2746 nvme_setup_io_queues(struct nvme_dev * dev) nvme_setup_io_queues() argument
2907 __nvme_delete_io_queues(struct nvme_dev * dev,u8 opcode) __nvme_delete_io_queues() argument
2935 nvme_delete_io_queues(struct nvme_dev * dev) nvme_delete_io_queues() argument
2941 nvme_pci_nr_maps(struct nvme_dev * dev) nvme_pci_nr_maps() argument
2950 nvme_pci_update_nr_queues(struct nvme_dev * dev) nvme_pci_update_nr_queues() argument
2975 nvme_pci_enable(struct nvme_dev * dev) nvme_pci_enable() argument
3058 nvme_dev_unmap(struct nvme_dev * dev) nvme_dev_unmap() argument
3065 nvme_pci_ctrl_is_dead(struct nvme_dev * dev) nvme_pci_ctrl_is_dead() argument
3079 nvme_dev_disable(struct nvme_dev * dev,bool shutdown) nvme_dev_disable() argument
3128 nvme_disable_prepare_reset(struct nvme_dev * dev,bool shutdown) nvme_disable_prepare_reset() argument
3136 nvme_pci_alloc_iod_mempool(struct nvme_dev * dev) nvme_pci_alloc_iod_mempool() argument
3149 nvme_free_tagset(struct nvme_dev * dev) nvme_free_tagset() argument
3157 nvme_pci_free_ctrl(struct nvme_ctrl * ctrl) nvme_pci_free_ctrl() argument
3159 struct nvme_dev *dev = to_nvme_dev(ctrl); nvme_pci_free_ctrl() local
3169 struct nvme_dev *dev = nvme_reset_work() local
3279 nvme_pci_reg_read32(struct nvme_ctrl * ctrl,u32 off,u32 * val) nvme_pci_reg_read32() argument
3285 nvme_pci_reg_write32(struct nvme_ctrl * ctrl,u32 off,u32 val) nvme_pci_reg_write32() argument
3291 nvme_pci_reg_read64(struct nvme_ctrl * ctrl,u32 off,u64 * val) nvme_pci_reg_read64() argument
3297 nvme_pci_get_address(struct nvme_ctrl * ctrl,char * buf,int size) nvme_pci_get_address() argument
3304 nvme_pci_print_device_info(struct nvme_ctrl * ctrl) nvme_pci_print_device_info() argument
3318 nvme_pci_supports_pci_p2pdma(struct nvme_ctrl * ctrl) nvme_pci_supports_pci_p2pdma() argument
3320 struct nvme_dev *dev = to_nvme_dev(ctrl); nvme_pci_supports_pci_p2pdma() local
3325 nvme_pci_get_virt_boundary(struct nvme_ctrl * ctrl,bool is_admin) nvme_pci_get_virt_boundary() argument
3350 nvme_dev_map(struct nvme_dev * dev) nvme_dev_map() argument
3448 struct nvme_dev *dev; nvme_pci_alloc_dev() local
3513 struct nvme_dev *dev; nvme_probe() local
3619 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_reset_prepare() local
3632 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_reset_done() local
3640 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_shutdown() local
3652 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_remove() local
3677 nvme_get_power_state(struct nvme_ctrl * ctrl,u32 * ps) nvme_get_power_state() argument
3682 nvme_set_power_state(struct nvme_ctrl * ctrl,u32 ps) nvme_set_power_state() argument
3687 nvme_resume(struct device * dev) nvme_resume() argument
3690 struct nvme_ctrl *ctrl = &ndev->ctrl; nvme_resume() local
3703 nvme_suspend(struct device * dev) nvme_suspend() argument
3707 struct nvme_ctrl *ctrl = &ndev->ctrl; nvme_suspend() local
3779 nvme_simple_suspend(struct device * dev) nvme_simple_suspend() argument
3786 nvme_simple_resume(struct device * dev) nvme_simple_resume() argument
3807 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_error_detected() local
3836 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_slot_reset() local
3847 struct nvme_dev *dev = pci_get_drvdata(pdev); nvme_error_resume() local
[all...]
H A Dfc.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/blk-cgroup.h>
15 #include <linux/nvme-fc-driver.h>
16 #include <linux/nvme-fc.h>
35 struct nvme_fc_ctrl *ctrl; member
36 struct device *dev; member
65 struct list_head lsreq_list; /* rport->ls_req_lis
99 struct nvme_fc_ctrl *ctrl; global() member
124 struct device *dev; /* physical device for dma */ global() member
138 struct device *dev; /* physical device for dma */ global() member
155 struct device *dev; global() member
179 struct nvme_ctrl ctrl; global() member
183 to_fc_ctrl(struct nvme_ctrl * ctrl) to_fc_ctrl() argument
278 nvme_fc_attach_to_unreg_lport(struct nvme_fc_port_info * pinfo,struct nvme_fc_port_template * ops,struct device * dev) nvme_fc_attach_to_unreg_lport() argument
349 nvme_fc_register_localport(struct nvme_fc_port_info * pinfo,struct nvme_fc_port_template * template,struct device * dev,struct nvme_fc_local_port ** portptr) nvme_fc_register_localport() argument
552 nvme_fc_resume_controller(struct nvme_fc_ctrl * ctrl) nvme_fc_resume_controller() argument
587 struct nvme_fc_ctrl *ctrl; nvme_fc_attach_to_suspended_rport() local
784 nvme_fc_ctrl_connectivity_loss(struct nvme_fc_ctrl * ctrl) nvme_fc_ctrl_connectivity_loss() argument
809 struct nvme_fc_ctrl *ctrl; nvme_fc_unregister_remoteport() local
914 fc_dma_map_single(struct device * dev,void * ptr,size_t size,enum dma_data_direction dir) fc_dma_map_single() argument
921 fc_dma_mapping_error(struct device * dev,dma_addr_t dma_addr) fc_dma_mapping_error() argument
927 fc_dma_unmap_single(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir) fc_dma_unmap_single() argument
935 fc_dma_sync_single_for_cpu(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir) fc_dma_sync_single_for_cpu() argument
943 fc_dma_sync_single_for_device(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir) fc_dma_sync_single_for_device() argument
969 fc_dma_map_sg(struct device * dev,struct scatterlist * sg,int nents,enum dma_data_direction dir) fc_dma_map_sg() argument
976 fc_dma_unmap_sg(struct device * dev,struct scatterlist * sg,int nents,enum dma_data_direction dir) fc_dma_unmap_sg() argument
1130 nvme_fc_connect_admin_queue(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,u16 qsize,u16 ersp_ratio) nvme_fc_connect_admin_queue() argument
1247 nvme_fc_connect_queue(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,u16 qsize,u16 ersp_ratio) nvme_fc_connect_queue() argument
1378 nvme_fc_xmt_disconnect_assoc(struct nvme_fc_ctrl * ctrl) nvme_fc_xmt_disconnect_assoc() argument
1473 struct nvme_fc_ctrl *ctrl, *tmp, *ret = NULL; nvme_fc_match_disconn_ls() local
1530 struct nvme_fc_ctrl *ctrl = NULL; nvme_fc_ls_disconnect_assoc() local
1790 __nvme_fc_exit_request(struct nvme_fc_ctrl * ctrl,struct nvme_fc_fcp_op * op) __nvme_fc_exit_request() argument
1811 __nvme_fc_abort_op(struct nvme_fc_ctrl * ctrl,struct nvme_fc_fcp_op * op) __nvme_fc_abort_op() argument
1838 nvme_fc_abort_aen_ops(struct nvme_fc_ctrl * ctrl) nvme_fc_abort_aen_ops() argument
1852 __nvme_fc_fcpop_chk_teardowns(struct nvme_fc_ctrl * ctrl,struct nvme_fc_fcp_op * op,int opstate) __nvme_fc_fcpop_chk_teardowns() argument
1871 struct nvme_fc_ctrl *ctrl = nvme_fc_ctrl_ioerr_work() local
1901 struct nvme_fc_ctrl *ctrl = op->ctrl; nvme_fc_fcpio_done() local
2058 __nvme_fc_init_request(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,struct nvme_fc_fcp_op * op,struct request * rq,u32 rqno) __nvme_fc_init_request() argument
2114 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(set->driver_data); nvme_fc_init_request() local
2131 nvme_fc_init_aen_ops(struct nvme_fc_ctrl * ctrl) nvme_fc_init_aen_ops() argument
2170 nvme_fc_term_aen_ops(struct nvme_fc_ctrl * ctrl) nvme_fc_term_aen_ops() argument
2188 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(data); __nvme_fc_init_hctx() local
2210 nvme_fc_init_queue(struct nvme_fc_ctrl * ctrl,int idx) nvme_fc_init_queue() argument
2264 __nvme_fc_delete_hw_queue(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,unsigned int qidx) __nvme_fc_delete_hw_queue() argument
2274 nvme_fc_free_io_queues(struct nvme_fc_ctrl * ctrl) nvme_fc_free_io_queues() argument
2283 __nvme_fc_create_hw_queue(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,unsigned int qidx,u16 qsize) __nvme_fc_create_hw_queue() argument
2297 nvme_fc_delete_hw_io_queues(struct nvme_fc_ctrl * ctrl) nvme_fc_delete_hw_io_queues() argument
2307 nvme_fc_create_hw_io_queues(struct nvme_fc_ctrl * ctrl,u16 qsize) nvme_fc_create_hw_io_queues() argument
2327 nvme_fc_connect_io_queues(struct nvme_fc_ctrl * ctrl,u16 qsize) nvme_fc_connect_io_queues() argument
2347 nvme_fc_init_io_queues(struct nvme_fc_ctrl * ctrl) nvme_fc_init_io_queues() argument
2358 struct nvme_fc_ctrl *ctrl = nvme_fc_ctrl_free() local
2379 nvme_fc_ctrl_put(struct nvme_fc_ctrl * ctrl) nvme_fc_ctrl_put() argument
2385 nvme_fc_ctrl_get(struct nvme_fc_ctrl * ctrl) nvme_fc_ctrl_get() argument
2397 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nvme_fc_free_ctrl() local
2420 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nvme_fc_terminate_exchange() local
2438 __nvme_fc_abort_outstanding_ios(struct nvme_fc_ctrl * ctrl,bool start_queues) __nvme_fc_abort_outstanding_ios() argument
2499 nvme_fc_error_recovery(struct nvme_fc_ctrl * ctrl,char * errmsg) nvme_fc_error_recovery() argument
2534 struct nvme_fc_ctrl *ctrl = op->ctrl; nvme_fc_timeout() local
2561 nvme_fc_map_data(struct nvme_fc_ctrl * ctrl,struct request * rq,struct nvme_fc_fcp_op * op) nvme_fc_map_data() argument
2596 nvme_fc_unmap_data(struct nvme_fc_ctrl * ctrl,struct request * rq,struct nvme_fc_fcp_op * op) nvme_fc_unmap_data() argument
2636 nvme_fc_start_fcp_op(struct nvme_fc_ctrl * ctrl,struct nvme_fc_queue * queue,struct nvme_fc_fcp_op * op,u32 data_len,enum nvmefc_fcp_datadir io_dir) nvme_fc_start_fcp_op() argument
2757 struct nvme_fc_ctrl *ctrl = queue->ctrl; nvme_fc_queue_rq() local
2797 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(arg); nvme_fc_submit_async_event() local
2817 struct nvme_fc_ctrl *ctrl = op->ctrl; nvme_fc_complete_rq() local
2829 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(set->driver_data); nvme_fc_map_queues() local
2860 nvme_fc_create_io_queues(struct nvme_fc_ctrl * ctrl) nvme_fc_create_io_queues() argument
2913 nvme_fc_recreate_io_queues(struct nvme_fc_ctrl * ctrl) nvme_fc_recreate_io_queues() argument
2985 nvme_fc_ctlr_active_on_rport(struct nvme_fc_ctrl * ctrl) nvme_fc_ctlr_active_on_rport() argument
3001 nvme_fc_ctlr_inactive_on_rport(struct nvme_fc_ctrl * ctrl) nvme_fc_ctlr_inactive_on_rport() argument
3024 nvme_fc_create_association(struct nvme_fc_ctrl * ctrl) nvme_fc_create_association() argument
3191 nvme_fc_delete_association(struct nvme_fc_ctrl * ctrl) nvme_fc_delete_association() argument
3258 struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); nvme_fc_delete_ctrl() local
3277 nvme_fc_reconnect_or_delete(struct nvme_fc_ctrl * ctrl,int status) nvme_fc_reconnect_or_delete() argument
3329 struct nvme_fc_ctrl *ctrl = nvme_fc_reset_ctrl_work() local
3376 struct nvme_fc_ctrl *ctrl = nvme_fc_connect_ctrl_work() local
3412 struct nvme_fc_ctrl *ctrl; nvme_fc_existing_controller() local
3428 nvme_fc_alloc_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_alloc_ctrl() argument
3431 struct nvme_fc_ctrl *ctrl; nvme_fc_alloc_ctrl() local
3535 nvme_fc_init_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_init_ctrl() argument
3538 struct nvme_fc_ctrl *ctrl; nvme_fc_init_ctrl() local
3675 nvme_fc_create_ctrl(struct device * dev,struct nvmf_ctrl_options * opts) nvme_fc_create_ctrl() argument
3679 struct nvme_ctrl *ctrl; nvme_fc_create_ctrl() local
3738 nvme_fc_nvme_discovery_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_fc_nvme_discovery_store() argument
3826 fc_appid_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) fc_appid_store() argument
3933 struct nvme_fc_ctrl *ctrl; nvme_fc_delete_controllers() local
[all...]
H A Dhwmon.c1 // SPDX-License-Identifier: GPL-2.0
14 struct nvme_ctrl *ctrl; member
19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh() argument
29 ret = nvme_get_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_get_temp_thresh()
32 return -EIO; in nvme_get_temp_thresh()
40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh() argument
52 ret = nvme_set_features(ctrl, NVME_FEAT_TEMP_THRESH, threshold, NULL, 0, in nvme_set_temp_thresh()
55 return -EIO; in nvme_set_temp_thresh()
62 return nvme_get_log(data->ctrl, NVME_NSID_ALL, NVME_LOG_SMART, 0, in nvme_hwmon_get_smart_log()
63 NVME_CSI_NVM, data->log, sizeof(*data->log), 0); in nvme_hwmon_get_smart_log()
[all …]
/linux/drivers/pci/hotplug/
H A Dpciehp_core.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 * Greg Kroah-Hartman <greg@kroah.com>
43 MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");
51 static int init_slot(struct controller *ctrl) in init_slot() argument
60 return -ENOMEM; in init_slot()
62 ops->enable_slot = pciehp_sysfs_enable_slot; in init_slot()
63 ops->disable_slot = pciehp_sysfs_disable_slot; in init_slot()
64 ops->get_power_status = get_power_status; in init_slot()
[all …]
H A Dpciehp_pci.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
25 * pciehp_configure_device() - enumerate PCI devices below a hotplug bridge
26 * @ctrl: PCIe hotplug controller
29 * Return 0 on success, %-EEXIST if the devices are already enumerated or
30 * %-ENODEV if enumeration failed.
32 int pciehp_configure_device(struct controller *ctrl) in pciehp_configure_device() argument
34 struct pci_dev *dev; in pciehp_configure_device() local
35 struct pci_dev *bridge = ctrl->pcie->port; in pciehp_configure_device()
[all …]
/linux/drivers/watchdog/
H A Drealtek_otto_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - Base prescale of (2 << 25), providing tick duration T_0: 168ms @ 200MHz
11 * - PRESCALE: logarithmic prescaler adding a factor of {1, 2, 4, 8}
12 * - Phase 1: Times out after (PHASE1 + 1) × PRESCALE × T_0
14 * - Phase 2: starts after phase 1, times out after (PHASE2 + 1) × PRESCALE × T_0
68 struct device *dev; member
76 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_start() local
79 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
81 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
88 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_stop() local
[all …]
/linux/drivers/mtd/nand/raw/
H A Dtegra_nand.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2014-2015 Lucas Stach <dev@lynxeye.de>
10 #include <linux/dma-mapping.h>
34 #define COMMAND_TRANS_SIZE(size) ((((size) - 1) & 0xf) << 20)
40 #define COMMAND_CLE_SIZE(size) ((((size) - 1) & 0x3) << 4)
41 #define COMMAND_ALE_SIZE(size) ((((size) - 1) & 0xf) << 0)
156 #define OFFSET(val, off) ((val) < (off) ? 0 : (val) - (off))
171 struct device *dev; member
207 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, in tegra_nand_ooblayout_rs_ecc()
211 return -ERANGE; in tegra_nand_ooblayout_rs_ecc()
[all …]
/linux/sound/soc/atmel/
H A Dmchp-spdiftx.c1 // SPDX-License-Identifier: GPL-2.0
22 * ---- S/PDIF Transmitter Controller Register map ----
39 * ---- Control Register (Write-only) ----
45 * ---- Mode Register (Read/Write) ----
92 * ---- Interrupt Enable/Disable/Mask/Status Register (Write/Read-only) ----
107 static bool mchp_spdiftx_readable_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_readable_reg() argument
131 static bool mchp_spdiftx_writeable_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_writeable_reg() argument
157 static bool mchp_spdiftx_precious_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_precious_reg() argument
193 struct device *dev; member
201 static inline int mchp_spdiftx_is_running(struct mchp_spdiftx_dev *dev) in mchp_spdiftx_is_running() argument
[all …]
/linux/drivers/nvme/target/
H A Dpci-epf.c1 // SPDX-License-Identifier: GPL-2.0
7 * REDS Institute, HEIG-VD, HES-SO, Switzerland
19 #include <linux/pci-epc.h>
20 #include <linux/pci-epf.h>
31 * allow up to 128 page-sized segments. For the maximum allowed,
36 (NVMET_PCI_EPF_MAX_SEGS << (PAGE_SHIFT - 10))
84 struct nvmet_pci_epf_ctrl *ctrl; member
129 struct nvmet_pci_epf_ctrl *ctrl; member
162 struct device *dev; member
209 struct nvmet_pci_epf_ctrl ctrl; member
[all …]
/linux/drivers/memory/
H A Dfsl_ifc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
29 * convert_ifc_address - convert the base address
39 * fsl_ifc_find - find IFC bank
51 if (!fsl_ifc_ctrl_dev || !fsl_ifc_ctrl_dev->gregs) in fsl_ifc_find()
52 return -ENODEV; in fsl_ifc_find()
54 for (i = 0; i < fsl_ifc_ctrl_dev->banks; i++) { in fsl_ifc_find()
55 u32 cspr = ifc_in32(&fsl_ifc_ctrl_dev->gregs->cspr_cs[i].cspr); in fsl_ifc_find()
62 return -ENOENT; in fsl_ifc_find()
66 static int fsl_ifc_ctrl_init(struct fsl_ifc_ctrl *ctrl) in fsl_ifc_ctrl_init() argument
68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init()
[all …]
/linux/arch/powerpc/sysdev/
H A Dfsl_lbc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright © 2007-2008 MontaVista Software, Inc.
10 * Author: Roy Zang <tie-fei.zang@freescale.com>
36 * fsl_lbc_addr - convert the base address
46 struct device_node *np = fsl_lbc_ctrl_dev->dev->of_node; in fsl_lbc_addr()
57 * fsl_lbc_find - find Localbus bank
70 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) in fsl_lbc_find()
71 return -ENODEV; in fsl_lbc_find()
73 lbc = fsl_lbc_ctrl_dev->regs; in fsl_lbc_find()
74 for (i = 0; i < ARRAY_SIZE(lbc->bank); i++) { in fsl_lbc_find()
[all …]
/linux/drivers/rtc/
H A Drtc-mpfs.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2021-2022 Microchip Corporation. All rights reserved.
63 u32 ctrl; in mpfs_rtc_start() local
65 ctrl = readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_start()
66 ctrl &= ~CONTROL_STOP_BIT; in mpfs_rtc_start()
67 ctrl |= CONTROL_START_BIT; in mpfs_rtc_start()
68 writel(ctrl, rtcdev->base + CONTROL_REG); in mpfs_rtc_start()
73 u32 val = readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
77 writel(val, rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
83 (void)readl(rtcdev->base + CONTROL_REG); in mpfs_rtc_clear_irq()
[all …]
H A Drtc-ds1305.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips
21 * otherwise you're reading it. All non-bitmask values are BCD.
27 * - Need fancy "hours" encoding in 12hour mode
28 * - Don't rely on the "day-of-week" field (or tm_wday)
29 * - Are a 21st-century clock (2000 <= year < 2100)
50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we
94 u8 ctrl[DS1305_CONTROL_LEN]; member
98 /*----------------------------------------------------------------------*/
101 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux
[all …]
H A Drtc-rv8803.c1 // SPDX-License-Identifier: GPL-2.0
72 u8 ctrl; member
89 while ((ret == -ENXIO || ret == -EIO) && --try); in rv8803_read_reg()
91 dev_err(&client->dev, "Unable to read register 0x%02x\n", reg); in rv8803_read_reg()
104 while ((ret == -ENXIO || ret == -EIO) && --try); in rv8803_read_regs()
106 dev_err(&client->dev, in rv8803_read_regs()
108 reg, reg + count - 1); in rv8803_read_regs()
109 return ret < 0 ? ret : -EIO; in rv8803_read_regs()
122 while ((ret == -ENXIO || ret == -EIO) && --try); in rv8803_write_reg()
124 dev_err(&client->dev, "Unable to write register 0x%02x\n", reg); in rv8803_write_reg()
[all …]
/linux/drivers/gpio/
H A Dgpio-en7523.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * struct airoha_gpio_ctrl - Airoha GPIO driver data
33 struct airoha_gpio_ctrl *ctrl = gpiochip_get_data(gc); in airoha_dir_set() local
34 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_dir_set()
35 u32 output = ioread32(ctrl->output); in airoha_dir_set()
46 iowrite32(dir, ctrl->dir[gpio / 16]); in airoha_dir_set()
49 gpio_generic_chip_set(&ctrl->gen_gc, gpio, val); in airoha_dir_set()
51 iowrite32(output, ctrl->output); in airoha_dir_set()
69 struct airoha_gpio_ctrl *ctrl = gpiochip_get_data(gc); in airoha_get_dir() local
70 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_get_dir()
[all …]
/linux/drivers/comedi/drivers/
H A Dcomedi_parport.c1 // SPDX-License-Identifier: GPL-2.0+
9 * COMEDI - Linux Control and Measurement Device Interface
19 * Updated: Tue, 30 Apr 2002 21:11:45 -0700
32 * ----- ------ ---- ---- --------------
50 * 18-25 ground
71 static int parport_data_reg_insn_bits(struct comedi_device *dev, in parport_data_reg_insn_bits() argument
77 outb(s->state, dev->iobase + PARPORT_DATA_REG); in parport_data_reg_insn_bits()
79 data[1] = inb(dev->iobase + PARPORT_DATA_REG); in parport_data_reg_insn_bits()
81 return insn->n; in parport_data_reg_insn_bits()
84 static int parport_data_reg_insn_config(struct comedi_device *dev, in parport_data_reg_insn_config() argument
[all …]
/linux/drivers/pci/msi/
H A Dpcidev_msi.c1 // SPDX-License-Identifier: GPL-2.0
12 void pci_msi_init(struct pci_dev *dev) in pci_msi_init() argument
14 u16 ctrl; in pci_msi_init() local
16 dev->msi_cap = pci_find_capability(dev, PCI_CAP_ID_MSI); in pci_msi_init()
17 if (!dev->msi_cap) in pci_msi_init()
20 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &ctrl); in pci_msi_init()
21 if (ctrl & PCI_MSI_FLAGS_ENABLE) { in pci_msi_init()
22 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, in pci_msi_init()
23 ctrl & ~PCI_MSI_FLAGS_ENABLE); in pci_msi_init()
26 if (!(ctrl & PCI_MSI_FLAGS_64BIT)) in pci_msi_init()
[all …]
/linux/drivers/video/fbdev/mmp/hw/
H A Dmmp_ctrl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <linux/dma-mapping.h>
32 struct mmphw_ctrl *ctrl = (struct mmphw_ctrl *)dev_id; in ctrl_handle_irq() local
35 isr = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR); in ctrl_handle_irq()
36 imask = readl_relaxed(ctrl->reg_base + SPU_IRQ_ENA); in ctrl_handle_irq()
40 tmp = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR); in ctrl_handle_irq()
42 writel_relaxed(~isr, ctrl->reg_base + SPU_IRQ_ISR); in ctrl_handle_irq()
43 } while ((isr = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR)) & imask); in ctrl_handle_irq()
122 struct mmp_path *path = overlay->path; in dmafetch_set_fmt()
123 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
[all …]
/linux/drivers/platform/surface/aggregator/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Provides access to a SAM-over-SSH connected EC via a controller device.
10 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
37 /* -- Static controller reference. ------------------------------------------ */
47 * ssam_get_controller() - Get reference to SSAM controller.
57 struct ssam_controller *ctrl; in ssam_get_controller() local
61 ctrl = __ssam_controller; in ssam_get_controller()
62 if (!ctrl) in ssam_get_controller()
65 if (WARN_ON(!kref_get_unless_zero(&ctrl->kref))) in ssam_get_controller()
66 ctrl = NULL; in ssam_get_controller()
[all …]
/linux/drivers/regulator/
H A Dvctrl-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
27 struct vctrl_voltage_range ctrl; member
32 int ctrl; member
50 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_ctrl_voltage() local
51 struct vctrl_voltage_range *out = &vctrl->vrange.out; in vctrl_calc_ctrl_voltage()
53 return ctrl->min_uV + in vctrl_calc_ctrl_voltage()
54 DIV_ROUND_CLOSEST_ULL((s64)(out_uV - out->min_uV) * in vctrl_calc_ctrl_voltage()
55 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage()
56 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage()
61 struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl; in vctrl_calc_output_voltage() local
[all …]
/linux/include/linux/
H A Dspmi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
34 * struct spmi_device - Basic representation of an SPMI device
35 * @dev: Driver model representation of the device.
36 * @ctrl: SPMI controller managing the bus hosting this device.
40 struct device dev; member
41 struct spmi_controller *ctrl; member
47 return container_of(d, struct spmi_device, dev); in to_spmi_device()
52 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
57 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
[all …]
/linux/drivers/hwmon/
H A Dlm73.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/hwmon-sysfs.h>
35 #define LM73_ID 0x9001 /* 0x0190, byte-swapped */
37 #define LM73_TEMP_MIN (-256000 / 250)
48 14, /* 11-bits (0.25000 C/LSB): RES1 Bit = 0, RES0 Bit = 0 */
49 28, /* 12-bits (0.12500 C/LSB): RES1 Bit = 0, RES0 Bit = 1 */
50 56, /* 13-bits (0.06250 C/LSB): RES1 Bit = 1, RES0 Bit = 0 */
51 112, /* 14-bits (0.03125 C/LSB): RES1 Bit = 1, RES0 Bit = 1 */
57 u8 ctrl; /* control register value */ member
60 /*-----------------------------------------------------------------------*/
[all …]
/linux/drivers/firmware/
H A Dstratix10-svc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2017-2018, Intel Corporation
23 #include <linux/firmware/intel/stratix10-smc.h>
24 #include <linux/firmware/intel/stratix10-svc-client.h>
28 * SVC_NUM_DATA_IN_FIFO - number of struct stratix10_svc_data in the FIFO
30 * SVC_NUM_CHANNEL - number of channel supported by service layer driver
32 * FPGA_CONFIG_DATA_CLAIM_TIMEOUT_MS - claim back the submitted buffer(s)
34 * when all bit-stream data had be send.
36 * FPGA_CONFIG_STATUS_TIMEOUT_SEC - poll the FPGA configuration status,
47 #define STRATIX10_RSU "stratix10-rsu"
[all …]

12345678910>>...42