/drivers/nvme/target/ |
D | loop.c | 59 struct nvme_ctrl ctrl; member 66 static inline struct nvme_loop_ctrl *to_loop_ctrl(struct nvme_ctrl *ctrl) in to_loop_ctrl() argument 68 return container_of(ctrl, struct nvme_loop_ctrl, ctrl); in to_loop_ctrl() 74 struct nvme_loop_ctrl *ctrl; member 83 static void nvme_loop_delete_ctrl(struct nvmet_ctrl *ctrl); 89 return queue - queue->ctrl->queues; in nvme_loop_queue_idx() 129 nvme_complete_async_event(&iod->queue->ctrl->ctrl, cqe); in nvme_loop_queue_response() 153 schedule_work(&iod->queue->ctrl->reset_work); in nvme_loop_timeout() 205 struct nvme_loop_ctrl *ctrl = to_loop_ctrl(arg); in nvme_loop_submit_async_event() local 206 struct nvme_loop_queue *queue = &ctrl->queues[0]; in nvme_loop_submit_async_event() [all …]
|
D | core.c | 62 static void nvmet_async_events_free(struct nvmet_ctrl *ctrl) in nvmet_async_events_free() argument 67 mutex_lock(&ctrl->lock); in nvmet_async_events_free() 68 if (!ctrl->nr_async_event_cmds) { in nvmet_async_events_free() 69 mutex_unlock(&ctrl->lock); in nvmet_async_events_free() 73 req = ctrl->async_event_cmds[--ctrl->nr_async_event_cmds]; in nvmet_async_events_free() 74 mutex_unlock(&ctrl->lock); in nvmet_async_events_free() 81 struct nvmet_ctrl *ctrl = in nvmet_async_event_work() local 87 mutex_lock(&ctrl->lock); in nvmet_async_event_work() 88 aen = list_first_entry_or_null(&ctrl->async_events, in nvmet_async_event_work() 90 if (!aen || !ctrl->nr_async_event_cmds) { in nvmet_async_event_work() [all …]
|
/drivers/gpu/drm/msm/edp/ |
D | edp_ctrl.c | 151 static int edp_clk_init(struct edp_ctrl *ctrl) in edp_clk_init() argument 153 struct device *dev = &ctrl->pdev->dev; in edp_clk_init() 156 ctrl->aux_clk = devm_clk_get(dev, "core_clk"); in edp_clk_init() 157 if (IS_ERR(ctrl->aux_clk)) { in edp_clk_init() 158 ret = PTR_ERR(ctrl->aux_clk); in edp_clk_init() 160 ctrl->aux_clk = NULL; in edp_clk_init() 164 ctrl->pixel_clk = devm_clk_get(dev, "pixel_clk"); in edp_clk_init() 165 if (IS_ERR(ctrl->pixel_clk)) { in edp_clk_init() 166 ret = PTR_ERR(ctrl->pixel_clk); in edp_clk_init() 168 ctrl->pixel_clk = NULL; in edp_clk_init() [all …]
|
/drivers/pci/hotplug/ |
D | pciehp_hpc.c | 44 static inline struct pci_dev *ctrl_dev(struct controller *ctrl) in ctrl_dev() argument 46 return ctrl->pcie->port; in ctrl_dev() 50 static void start_int_poll_timer(struct controller *ctrl, int sec); 55 struct controller *ctrl = (struct controller *)data; in int_poll_timeout() local 58 pcie_isr(0, ctrl); in int_poll_timeout() 60 init_timer(&ctrl->poll_timer); in int_poll_timeout() 64 start_int_poll_timer(ctrl, pciehp_poll_time); in int_poll_timeout() 68 static void start_int_poll_timer(struct controller *ctrl, int sec) in start_int_poll_timer() argument 74 ctrl->poll_timer.function = &int_poll_timeout; in start_int_poll_timer() 75 ctrl->poll_timer.data = (unsigned long)ctrl; in start_int_poll_timer() [all …]
|
D | shpchp_hpc.c | 183 static void start_int_poll_timer(struct controller *ctrl, int sec); 184 static int hpc_check_cmd_status(struct controller *ctrl); 186 static inline u8 shpc_readb(struct controller *ctrl, int reg) in shpc_readb() argument 188 return readb(ctrl->creg + reg); in shpc_readb() 191 static inline void shpc_writeb(struct controller *ctrl, int reg, u8 val) in shpc_writeb() argument 193 writeb(val, ctrl->creg + reg); in shpc_writeb() 196 static inline u16 shpc_readw(struct controller *ctrl, int reg) in shpc_readw() argument 198 return readw(ctrl->creg + reg); in shpc_readw() 201 static inline void shpc_writew(struct controller *ctrl, int reg, u16 val) in shpc_writew() argument 203 writew(val, ctrl->creg + reg); in shpc_writew() [all …]
|
D | cpqphp_core.c | 134 static int init_SERR(struct controller *ctrl) in init_SERR() argument 140 if (!ctrl) in init_SERR() 143 tempdword = ctrl->first_slot; in init_SERR() 145 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in init_SERR() 149 writeb(0, ctrl->hpc_reg + SLOT_SERR); in init_SERR() 294 static int ctrl_slot_cleanup(struct controller *ctrl) in ctrl_slot_cleanup() argument 298 old_slot = ctrl->slot; in ctrl_slot_cleanup() 299 ctrl->slot = NULL; in ctrl_slot_cleanup() 308 cpqhp_remove_debugfs_files(ctrl); in ctrl_slot_cleanup() 311 free_irq(ctrl->interrupt, ctrl); in ctrl_slot_cleanup() [all …]
|
D | cpqphp_ctrl.c | 42 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func, 44 static int configure_new_function(struct controller *ctrl, struct pci_func *func, 46 static void interrupt_event_handler(struct controller *ctrl); 67 static u8 handle_switch_change(u8 change, struct controller *ctrl) in handle_switch_change() argument 86 func = cpqhp_slot_find(ctrl->bus, in handle_switch_change() 87 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change() 92 taskInfo = &(ctrl->event_queue[ctrl->next_event]); in handle_switch_change() 93 ctrl->next_event = (ctrl->next_event + 1) % 10; in handle_switch_change() 98 temp_word = ctrl->ctrl_int_comp >> 16; in handle_switch_change() 102 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in handle_switch_change() [all …]
|
D | shpchp_ctrl.c | 59 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl) in shpchp_handle_attention_button() argument 65 ctrl_dbg(ctrl, "Attention button interrupt received\n"); in shpchp_handle_attention_button() 67 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button() 73 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_attention_button() 82 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl) in shpchp_handle_switch_change() argument 89 ctrl_dbg(ctrl, "Switch interrupt received\n"); in shpchp_handle_switch_change() 91 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_switch_change() 94 ctrl_dbg(ctrl, "Card present %x Power status %x\n", in shpchp_handle_switch_change() 101 ctrl_info(ctrl, "Latch open on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_switch_change() 105 ctrl_err(ctrl, "Surprise Removal of card\n"); in shpchp_handle_switch_change() [all …]
|
D | pciehp_ctrl.c | 46 ctrl_err(p_slot->ctrl, "dropped event %d (ENOMEM)\n", event_type); in pciehp_queue_interrupt_event() 60 static void set_slot_off(struct controller *ctrl, struct slot *pslot) in set_slot_off() argument 63 if (POWER_CTRL(ctrl)) { in set_slot_off() 88 struct controller *ctrl = p_slot->ctrl; in board_added() local 89 struct pci_bus *parent = ctrl->pcie->port->subordinate; in board_added() 91 if (POWER_CTRL(ctrl)) { in board_added() 101 retval = pciehp_check_link_status(ctrl); in board_added() 103 ctrl_err(ctrl, "Failed to check link status\n"); in board_added() 108 if (ctrl->power_fault_detected || pciehp_query_power_fault(p_slot)) { in board_added() 109 ctrl_err(ctrl, "Slot(%s): Power fault\n", slot_name(p_slot)); in board_added() [all …]
|
D | pciehp.h | 59 #define ctrl_dbg(ctrl, format, arg...) \ argument 62 dev_printk(KERN_DEBUG, &ctrl->pcie->device, \ 65 #define ctrl_err(ctrl, format, arg...) \ argument 66 dev_err(&ctrl->pcie->device, format, ## arg) 67 #define ctrl_info(ctrl, format, arg...) \ argument 68 dev_info(&ctrl->pcie->device, format, ## arg) 69 #define ctrl_warn(ctrl, format, arg...) \ argument 70 dev_warn(&ctrl->pcie->device, format, ## arg) 75 struct controller *ctrl; member 117 #define ATTN_BUTTN(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_ABP) argument [all …]
|
D | shpchp_core.c | 86 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in release_slot() 94 static int init_slots(struct controller *ctrl) in init_slots() argument 103 for (i = 0; i < ctrl->num_slots; i++) { in init_slots() 125 slot->ctrl = ctrl; in init_slots() 126 slot->bus = ctrl->pci_dev->subordinate->number; in init_slots() 127 slot->device = ctrl->slot_device_offset + i; in init_slots() 128 slot->hpc_ops = ctrl->hpc_ops; in init_slots() 129 slot->number = ctrl->first_slot + (ctrl->slot_num_inc * i); in init_slots() 146 …ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\… in init_slots() 147 pci_domain_nr(ctrl->pci_dev->subordinate), in init_slots() [all …]
|
D | cpqphp.h | 275 struct controller *ctrl; member 409 void cpqhp_create_debugfs_files(struct controller *ctrl); 410 void cpqhp_remove_debugfs_files(struct controller *ctrl); 415 int cpqhp_find_available_resources(struct controller *ctrl, 422 int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func); 423 int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func); 424 int cpqhp_hardware_test(struct controller *ctrl, int test_num); 431 int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num, 433 int cpqhp_save_config(struct controller *ctrl, int busnumber, int is_hot_plug); 434 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func); [all …]
|
D | shpchp.h | 62 #define ctrl_dbg(ctrl, format, arg...) \ argument 65 dev_printk(KERN_DEBUG, &ctrl->pci_dev->dev, \ 68 #define ctrl_err(ctrl, format, arg...) \ argument 69 dev_err(&ctrl->pci_dev->dev, format, ## arg) 70 #define ctrl_info(ctrl, format, arg...) \ argument 71 dev_info(&ctrl->pci_dev->dev, format, ## arg) 72 #define ctrl_warn(ctrl, format, arg...) \ argument 73 dev_warn(&ctrl->pci_dev->dev, format, ## arg) 86 struct controller *ctrl; member 171 int __must_check shpchp_create_ctrl_files(struct controller *ctrl); [all …]
|
/drivers/nvme/host/ |
D | rdma.c | 94 struct nvme_rdma_ctrl *ctrl; member 137 struct nvme_ctrl ctrl; member 140 static inline struct nvme_rdma_ctrl *to_rdma_ctrl(struct nvme_ctrl *ctrl) in to_rdma_ctrl() argument 142 return container_of(ctrl, struct nvme_rdma_ctrl, ctrl); in to_rdma_ctrl() 177 return queue - queue->ctrl->queues; in nvme_rdma_queue_idx() 281 struct nvme_rdma_ctrl *ctrl = data; in nvme_rdma_reinit_request() local 282 struct nvme_rdma_device *dev = ctrl->device; in nvme_rdma_reinit_request() 292 ctrl->max_fr_pages); in nvme_rdma_reinit_request() 305 static void __nvme_rdma_exit_request(struct nvme_rdma_ctrl *ctrl, in __nvme_rdma_exit_request() argument 309 struct nvme_rdma_queue *queue = &ctrl->queues[queue_idx]; in __nvme_rdma_exit_request() [all …]
|
D | core.c | 81 bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, in nvme_change_ctrl_state() argument 87 spin_lock_irq(&ctrl->lock); in nvme_change_ctrl_state() 89 old_state = ctrl->state; in nvme_change_ctrl_state() 147 ctrl->state = new_state; in nvme_change_ctrl_state() 149 spin_unlock_irq(&ctrl->lock); in nvme_change_ctrl_state() 169 ida_simple_remove(&ns->ctrl->ns_ida, ns->instance); in nvme_free_ns() 170 nvme_put_ctrl(ns->ctrl); in nvme_free_ns() 188 if (!try_module_get(ns->ctrl->ops->module)) in nvme_get_ns_from_disk() 484 struct nvme_ctrl *ctrl = rq->end_io_data; in nvme_keep_alive_end_io() local 489 dev_err(ctrl->device, in nvme_keep_alive_end_io() [all …]
|
/drivers/block/rsxx/ |
D | dma.c | 215 q_depth += atomic_read(&card->ctrl[i].stats.hw_q_depth); in dma_intr_coal_auto_tune() 224 static void rsxx_free_dma(struct rsxx_dma_ctrl *ctrl, struct rsxx_dma *dma) in rsxx_free_dma() argument 227 if (!pci_dma_mapping_error(ctrl->card->dev, dma->dma_addr)) { in rsxx_free_dma() 228 pci_unmap_page(ctrl->card->dev, dma->dma_addr, in rsxx_free_dma() 239 static void rsxx_complete_dma(struct rsxx_dma_ctrl *ctrl, in rsxx_complete_dma() argument 244 ctrl->stats.dma_sw_err++; in rsxx_complete_dma() 246 ctrl->stats.dma_hw_fault++; in rsxx_complete_dma() 248 ctrl->stats.dma_cancelled++; in rsxx_complete_dma() 251 dma->cb(ctrl->card, dma->cb_data, status ? 1 : 0); in rsxx_complete_dma() 253 rsxx_free_dma(ctrl, dma); in rsxx_complete_dma() [all …]
|
/drivers/net/phy/ |
D | mdio-bitbang.c | 47 static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val) in mdiobb_send_bit() argument 49 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit() 51 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit() 53 ops->set_mdc(ctrl, 1); in mdiobb_send_bit() 55 ops->set_mdc(ctrl, 0); in mdiobb_send_bit() 59 static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl) in mdiobb_get_bit() argument 61 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_get_bit() 64 ops->set_mdc(ctrl, 1); in mdiobb_get_bit() 66 ops->set_mdc(ctrl, 0); in mdiobb_get_bit() 68 return ops->get_mdio_data(ctrl); in mdiobb_get_bit() [all …]
|
/drivers/mtd/nand/brcmnand/ |
D | brcmnand.c | 194 struct brcmnand_controller *ctrl; member 444 static inline u32 nand_readreg(struct brcmnand_controller *ctrl, u32 offs) in nand_readreg() argument 446 return brcmnand_readl(ctrl->nand_base + offs); in nand_readreg() 449 static inline void nand_writereg(struct brcmnand_controller *ctrl, u32 offs, in nand_writereg() argument 452 brcmnand_writel(val, ctrl->nand_base + offs); in nand_writereg() 455 static int brcmnand_revision_init(struct brcmnand_controller *ctrl) in brcmnand_revision_init() argument 461 ctrl->nand_version = nand_readreg(ctrl, 0) & 0xffff; in brcmnand_revision_init() 464 if (ctrl->nand_version < 0x0400) { in brcmnand_revision_init() 465 dev_err(ctrl->dev, "version %#x not supported\n", in brcmnand_revision_init() 466 ctrl->nand_version); in brcmnand_revision_init() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-ctrls.c | 40 struct v4l2_ctrl *ctrl; member 1222 static u32 user_flags(const struct v4l2_ctrl *ctrl) in user_flags() argument 1224 u32 flags = ctrl->flags; in user_flags() 1226 if (ctrl->is_ptr) in user_flags() 1232 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 changes) in fill_event() argument 1236 ev->id = ctrl->id; in fill_event() 1237 ev->u.ctrl.changes = changes; in fill_event() 1238 ev->u.ctrl.type = ctrl->type; in fill_event() 1239 ev->u.ctrl.flags = user_flags(ctrl); in fill_event() 1240 if (ctrl->is_ptr) in fill_event() [all …]
|
/drivers/gpio/ |
D | gpio-ath79.c | 46 static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg) in ath79_gpio_read() argument 48 return readl(ctrl->base + reg); in ath79_gpio_read() 51 static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl, in ath79_gpio_write() argument 54 return writel(val, ctrl->base + reg); in ath79_gpio_write() 58 struct ath79_gpio_ctrl *ctrl, unsigned reg, u32 mask, u32 bits) in ath79_gpio_update_bits() argument 62 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits() 66 ath79_gpio_write(ctrl, reg, new_val); in ath79_gpio_update_bits() 73 struct ath79_gpio_ctrl *ctrl = irq_data_to_ath79_gpio(data); in ath79_gpio_irq_unmask() local 77 spin_lock_irqsave(&ctrl->lock, flags); in ath79_gpio_irq_unmask() 78 ath79_gpio_update_bits(ctrl, AR71XX_GPIO_REG_INT_MASK, mask, mask); in ath79_gpio_irq_unmask() [all …]
|
/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 79 const struct iproc_clk_ctrl *ctrl; member 88 const struct iproc_pll_ctrl *ctrl; member 134 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in pll_wait_for_lock() local 137 u32 val = readl(pll->status_base + ctrl->status.offset); in pll_wait_for_lock() 139 if (val & (1 << ctrl->status.shift)) in pll_wait_for_lock() 150 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in iproc_pll_write() local 154 if (unlikely(ctrl->flags & IPROC_CLK_NEEDS_READ_BACK && in iproc_pll_write() 161 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in __pll_disable() local 164 if (ctrl->flags & IPROC_CLK_PLL_ASIU) { in __pll_disable() 165 val = readl(pll->asiu_base + ctrl->asiu.offset); in __pll_disable() [all …]
|
/drivers/spmi/ |
D | spmi.c | 43 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() local 44 ida_simple_remove(&ctrl_ida, ctrl->nr); in spmi_ctrl_release() 45 kfree(ctrl); in spmi_ctrl_release() 70 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add() local 73 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add() 100 spmi_cmd(struct spmi_controller *ctrl, u8 opcode, u8 sid) in spmi_cmd() argument 104 if (!ctrl || !ctrl->cmd || ctrl->dev.type != &spmi_ctrl_type) in spmi_cmd() 107 ret = ctrl->cmd(ctrl, opcode, sid); in spmi_cmd() 112 static inline int spmi_read_cmd(struct spmi_controller *ctrl, u8 opcode, in spmi_read_cmd() argument 117 if (!ctrl || !ctrl->read_cmd || ctrl->dev.type != &spmi_ctrl_type) in spmi_read_cmd() [all …]
|
/drivers/isdn/hysdn/ |
D | hycapi.c | 47 static u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); 65 hycapi_reset_ctr(struct capi_ctr *ctrl) in hycapi_reset_ctr() argument 67 hycapictrl_info *cinfo = ctrl->driverdata; in hycapi_reset_ctr() 73 capi_ctr_down(ctrl); in hycapi_reset_ctr() 81 hycapi_remove_ctr(struct capi_ctr *ctrl) in hycapi_remove_ctr() argument 89 cinfo = (hycapictrl_info *)(ctrl->driverdata); in hycapi_remove_ctr() 95 capi_ctr_suspend_output(ctrl); in hycapi_remove_ctr() 97 if (hycapi_applications[i].listen_req[ctrl->cnr - 1]) { in hycapi_remove_ctr() 98 kfree_skb(hycapi_applications[i].listen_req[ctrl->cnr - 1]); in hycapi_remove_ctr() 99 hycapi_applications[i].listen_req[ctrl->cnr - 1] = NULL; in hycapi_remove_ctr() [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 748 static inline __u8 *uvc_ctrl_data(struct uvc_control *ctrl, int id) in uvc_ctrl_data() argument 750 return ctrl->uvc_data + id * ctrl->info.size; in uvc_ctrl_data() 864 struct uvc_control *ctrl; in __uvc_find_control() local 872 ctrl = &entity->controls[i]; in __uvc_find_control() 873 if (!ctrl->initialized) in __uvc_find_control() 876 list_for_each_entry(map, &ctrl->info.mappings, list) { in __uvc_find_control() 878 *control = ctrl; in __uvc_find_control() 885 *control = ctrl; in __uvc_find_control() 895 struct uvc_control *ctrl = NULL; in uvc_find_control() local 906 __uvc_find_control(entity, v4l2_id, mapping, &ctrl, next); in uvc_find_control() [all …]
|
/drivers/scsi/be2iscsi/ |
D | be_cmds.c | 99 struct be_queue_info *mccq = &phba->ctrl.mcc_obj.q; in alloc_mcc_wrb() 103 spin_lock(&phba->ctrl.mcc_lock); in alloc_mcc_wrb() 108 mccq->used, phba->ctrl.mcc_tag_available); in alloc_mcc_wrb() 112 if (!phba->ctrl.mcc_tag_available) in alloc_mcc_wrb() 115 tag = phba->ctrl.mcc_tag[phba->ctrl.mcc_alloc_index]; in alloc_mcc_wrb() 120 phba->ctrl.mcc_tag_available, in alloc_mcc_wrb() 121 phba->ctrl.mcc_alloc_index); in alloc_mcc_wrb() 127 phba->ctrl.mcc_tag[phba->ctrl.mcc_alloc_index] = 0; in alloc_mcc_wrb() 128 phba->ctrl.mcc_tag_status[tag] = 0; in alloc_mcc_wrb() 129 phba->ctrl.ptag_state[tag].tag_state = 0; in alloc_mcc_wrb() [all …]
|