/drivers/staging/media/lirc/ |
D | lirc_imon.c | 189 static void free_imon_context(struct imon_context *context) in free_imon_context() argument 191 struct device *dev = context->driver->dev; in free_imon_context() 193 usb_free_urb(context->tx_urb); in free_imon_context() 194 usb_free_urb(context->rx_urb); in free_imon_context() 195 lirc_buffer_free(context->driver->rbuf); in free_imon_context() 196 kfree(context->driver->rbuf); in free_imon_context() 197 kfree(context->driver); in free_imon_context() 198 kfree(context); in free_imon_context() 203 static void deregister_from_lirc(struct imon_context *context) in deregister_from_lirc() argument 206 int minor = context->driver->minor; in deregister_from_lirc() [all …]
|
D | lirc_sasem.c | 165 static void delete_context(struct sasem_context *context) in delete_context() argument 167 usb_free_urb(context->tx_urb); /* VFD */ in delete_context() 168 usb_free_urb(context->rx_urb); /* IR */ in delete_context() 169 lirc_buffer_free(context->driver->rbuf); in delete_context() 170 kfree(context->driver->rbuf); in delete_context() 171 kfree(context->driver); in delete_context() 172 kfree(context); in delete_context() 175 static void deregister_from_lirc(struct sasem_context *context) in deregister_from_lirc() argument 178 int minor = context->driver->minor; in deregister_from_lirc() 182 dev_err(&context->dev->dev, in deregister_from_lirc() [all …]
|
/drivers/misc/vmw_vmci/ |
D | vmci_context.c | 51 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument 53 *context->notify = true; in ctx_signal_notify() 56 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument 58 *context->notify = false; in ctx_clear_notify() 65 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument 67 if (context->pending_datagrams == 0 && in ctx_clear_notify_call() 68 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call() 69 ctx_clear_notify(context); in ctx_clear_notify_call() 76 void vmci_ctx_check_signal_notify(struct vmci_ctx *context) in vmci_ctx_check_signal_notify() argument 78 spin_lock(&context->lock); in vmci_ctx_check_signal_notify() [all …]
|
D | vmci_route.c | 50 if (VMCI_INVALID_ID == dst->context) in vmci_route() 54 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route() 72 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route() 83 if (VMCI_INVALID_ID == src->context && in vmci_route() 85 src->context = vmci_get_context_id(); in vmci_route() 93 if (VMCI_HOST_CONTEXT_ID == dst->context) { in vmci_route() 102 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route() 121 if (VMCI_INVALID_ID == src->context) in vmci_route() 122 src->context = vmci_get_context_id(); in vmci_route() 138 if (VMCI_INVALID_ID == src->context) { in vmci_route() [all …]
|
D | vmci_host.c | 93 struct vmci_ctx *context; member 146 vmci_ctx_destroy(vmci_host_dev->context); in vmci_host_close() 147 vmci_host_dev->context = NULL; in vmci_host_close() 171 struct vmci_ctx *context = vmci_host_dev->context; in vmci_host_poll() local 177 poll_wait(filp, &context->host_context.wait_queue, in vmci_host_poll() 180 spin_lock(&context->lock); in vmci_host_poll() 181 if (context->pending_datagrams > 0 || in vmci_host_poll() 183 context->pending_doorbell_array) > 0) { in vmci_host_poll() 186 spin_unlock(&context->lock); in vmci_host_poll() 224 static int vmci_host_setup_notify(struct vmci_ctx *context, in vmci_host_setup_notify() argument [all …]
|
D | vmci_context.h | 137 void vmci_ctx_destroy(struct vmci_ctx *context); 139 bool vmci_ctx_supports_host_qp(struct vmci_ctx *context); 141 int vmci_ctx_dequeue_datagram(struct vmci_ctx *context, 145 void vmci_ctx_put(struct vmci_ctx *context); 155 int vmci_ctx_qp_create(struct vmci_ctx *context, struct vmci_handle handle); 156 int vmci_ctx_qp_destroy(struct vmci_ctx *context, struct vmci_handle handle); 157 bool vmci_ctx_qp_exists(struct vmci_ctx *context, struct vmci_handle handle); 159 void vmci_ctx_check_signal_notify(struct vmci_ctx *context); 160 void vmci_ctx_unset_notify(struct vmci_ctx *context); 175 static inline u32 vmci_ctx_get_id(struct vmci_ctx *context) in vmci_ctx_get_id() argument [all …]
|
/drivers/tty/serial/ |
D | tilegx.c | 49 gxio_uart_context_t context; member 71 gxio_uart_context_t *context = &tile_uart->context; in receive_chars() local 74 count.word = gxio_uart_read(context, UART_FIFO_COUNT); in receive_chars() 76 c = (char)gxio_uart_read(context, UART_RECEIVE_DATA); in receive_chars() 89 gxio_uart_context_t *context = &tile_uart->context; in handle_receive() local 98 gxio_uart_write(context, UART_INTERRUPT_STATUS, in handle_receive() 117 static int tilegx_putchar(gxio_uart_context_t *context, char c) in tilegx_putchar() argument 120 flag.word = gxio_uart_read(context, UART_FLAG); in tilegx_putchar() 124 gxio_uart_write(context, UART_TRANSMIT_DATA, (unsigned long)c); in tilegx_putchar() 137 gxio_uart_context_t *context = &tile_uart->context; in handle_transmit() local [all …]
|
/drivers/infiniband/core/ |
D | umem_odp.c | 82 static void ib_ucontext_notifier_start_account(struct ib_ucontext *context) in ib_ucontext_notifier_start_account() argument 84 atomic_inc(&context->notifier_count); in ib_ucontext_notifier_start_account() 91 static void ib_ucontext_notifier_end_account(struct ib_ucontext *context) in ib_ucontext_notifier_end_account() argument 93 int zero_notifiers = atomic_dec_and_test(&context->notifier_count); in ib_ucontext_notifier_end_account() 96 !list_empty(&context->no_private_counters)) { in ib_ucontext_notifier_end_account() 103 down_write(&context->umem_rwsem); in ib_ucontext_notifier_end_account() 107 if (!atomic_read(&context->notifier_count)) { in ib_ucontext_notifier_end_account() 109 &context->no_private_counters, in ib_ucontext_notifier_end_account() 119 up_write(&context->umem_rwsem); in ib_ucontext_notifier_end_account() 135 item->context->invalidate_range(item, ib_umem_start(item), in ib_umem_notifier_release_trampoline() [all …]
|
D | device.c | 252 struct ib_client_data *context; in add_client_context() local 255 context = kmalloc(sizeof *context, GFP_KERNEL); in add_client_context() 256 if (!context) { in add_client_context() 262 context->client = client; in add_client_context() 263 context->data = NULL; in add_client_context() 264 context->going_down = false; in add_client_context() 268 list_add(&context->list, &device->client_data_list); in add_client_context() 386 struct ib_client_data *context, *tmp; in ib_unregister_device() local 394 list_for_each_entry_safe(context, tmp, &device->client_data_list, list) in ib_unregister_device() 395 context->going_down = true; in ib_unregister_device() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_resources.c | 42 int user_prio, struct mlx4_qp_context *context) in mlx4_en_fill_qp_context() argument 47 memset(context, 0, sizeof *context); in mlx4_en_fill_qp_context() 48 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); in mlx4_en_fill_qp_context() 49 context->pd = cpu_to_be32(mdev->priv_pdn); in mlx4_en_fill_qp_context() 50 context->mtu_msgmax = 0xff; in mlx4_en_fill_qp_context() 52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 56 context->params2 |= MLX4_QP_BIT_FPP; in mlx4_en_fill_qp_context() 59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context() 61 context->usr_page = cpu_to_be32(mdev->priv_uar.index); in mlx4_en_fill_qp_context() [all …]
|
/drivers/usb/image/ |
D | microtek.c | 190 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \ 191 …MTS_DEBUG("status = 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_len… 192 mts_debug_dump(context->instance);\ 207 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \ 384 context->instance->usb_dev, in mts_int_submit_urb() 389 context in mts_int_submit_urb() 395 context->srb->result = DID_ERROR << 16; in mts_int_submit_urb() 406 if ( likely(context->final_callback != NULL) ) in mts_transfer_cleanup() 407 context->final_callback(context->srb); in mts_transfer_cleanup() 414 context->srb->result &= MTS_SCSI_ERR_MASK; in mts_transfer_done() [all …]
|
/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 64 static void hotplug_event(u32 type, struct acpiphp_context *context); 75 struct acpiphp_context *context; in acpiphp_init_context() local 77 context = kzalloc(sizeof(*context), GFP_KERNEL); in acpiphp_init_context() 78 if (!context) in acpiphp_init_context() 81 context->refcount = 1; in acpiphp_init_context() 82 context->hp.notify = acpiphp_hotplug_notify; in acpiphp_init_context() 83 context->hp.fixup = acpiphp_post_dock_fixup; in acpiphp_init_context() 84 acpi_set_hp_context(adev, &context->hp); in acpiphp_init_context() 85 return context; in acpiphp_init_context() 96 struct acpiphp_context *context; in acpiphp_get_context() local [all …]
|
/drivers/gpu/drm/ |
D | drm_lock.c | 41 static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context); 67 if (lock->context == DRM_KERNEL_CONTEXT) { in drm_legacy_lock() 69 task_pid_nr(current), lock->context); in drm_legacy_lock() 74 lock->context, task_pid_nr(current), in drm_legacy_lock() 90 if (drm_lock_take(&master->lock, lock->context)) { in drm_legacy_lock() 111 DRM_DEBUG("%d %s\n", lock->context, in drm_legacy_lock() 119 dev->sigdata.context = lock->context; in drm_legacy_lock() 127 lock->context); in drm_legacy_lock() 154 if (lock->context == DRM_KERNEL_CONTEXT) { in drm_legacy_unlock() 156 task_pid_nr(current), lock->context); in drm_legacy_unlock() [all …]
|
/drivers/base/regmap/ |
D | regmap-i2c.c | 19 static int regmap_smbus_byte_reg_read(void *context, unsigned int reg, in regmap_smbus_byte_reg_read() argument 22 struct device *dev = context; in regmap_smbus_byte_reg_read() 38 static int regmap_smbus_byte_reg_write(void *context, unsigned int reg, in regmap_smbus_byte_reg_write() argument 41 struct device *dev = context; in regmap_smbus_byte_reg_write() 55 static int regmap_smbus_word_reg_read(void *context, unsigned int reg, in regmap_smbus_word_reg_read() argument 58 struct device *dev = context; in regmap_smbus_word_reg_read() 74 static int regmap_smbus_word_reg_write(void *context, unsigned int reg, in regmap_smbus_word_reg_write() argument 77 struct device *dev = context; in regmap_smbus_word_reg_write() 91 static int regmap_smbus_word_read_swapped(void *context, unsigned int reg, in regmap_smbus_word_read_swapped() argument 94 struct device *dev = context; in regmap_smbus_word_read_swapped() [all …]
|
D | regmap-spmi.c | 25 static int regmap_spmi_base_read(void *context, in regmap_spmi_base_read() argument 35 err = spmi_register_read(context, addr++, val++); in regmap_spmi_base_read() 40 static int regmap_spmi_base_gather_write(void *context, in regmap_spmi_base_gather_write() argument 55 err = spmi_register_zero_write(context, *data); in regmap_spmi_base_gather_write() 65 err = spmi_register_write(context, addr, *data); in regmap_spmi_base_gather_write() 78 static int regmap_spmi_base_write(void *context, const void *data, in regmap_spmi_base_write() argument 82 return regmap_spmi_base_gather_write(context, data, 1, data + 1, in regmap_spmi_base_write() 114 static int regmap_spmi_ext_read(void *context, in regmap_spmi_ext_read() argument 133 err = spmi_ext_register_read(context, addr, val, len); in regmap_spmi_ext_read() 145 err = spmi_ext_register_readl(context, addr, val, len); in regmap_spmi_ext_read() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 305 struct mthca_ucontext *context; in mthca_alloc_ucontext() local 319 context = kmalloc(sizeof *context, GFP_KERNEL); in mthca_alloc_ucontext() 320 if (!context) in mthca_alloc_ucontext() 323 err = mthca_uar_alloc(to_mdev(ibdev), &context->uar); in mthca_alloc_ucontext() 325 kfree(context); in mthca_alloc_ucontext() 329 context->db_tab = mthca_init_user_db_tab(to_mdev(ibdev)); in mthca_alloc_ucontext() 330 if (IS_ERR(context->db_tab)) { in mthca_alloc_ucontext() 331 err = PTR_ERR(context->db_tab); in mthca_alloc_ucontext() 332 mthca_uar_free(to_mdev(ibdev), &context->uar); in mthca_alloc_ucontext() 333 kfree(context); in mthca_alloc_ucontext() [all …]
|
/drivers/media/usb/as102/ |
D | as10x_cmd_cfg.c | 43 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context() 46 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context() 47 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context() 48 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context() 54 sizeof(pcmd->body.context.req) in as10x_cmd_get_context() 57 sizeof(prsp->body.context.rsp) in as10x_cmd_get_context() 72 *pvalue = le32_to_cpu((__force __le32)prsp->body.context.rsp.reg_val.u.value32); in as10x_cmd_get_context() 99 sizeof(pcmd->body.context.req)); in as10x_cmd_set_context() 102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_set_context() 104 pcmd->body.context.req.reg_val.u.value32 = (__force u32)cpu_to_le32(value); in as10x_cmd_set_context() [all …]
|
/drivers/staging/vt6656/ |
D | usbpipe.c | 130 struct vnt_private *priv = urb->context; in vnt_start_interrupt_urb_complete() 192 struct vnt_rcb *rcb = urb->context; in vnt_submit_rx_urb_complete() 266 struct vnt_usb_send_context *context = urb->context; in vnt_tx_context_complete() local 267 struct vnt_private *priv = context->priv; in vnt_tx_context_complete() 271 dev_dbg(&priv->usb->dev, "Write %d bytes\n", context->buf_len); in vnt_tx_context_complete() 276 context->in_use = false; in vnt_tx_context_complete() 284 if (context->type == CONTEXT_DATA_PACKET) in vnt_tx_context_complete() 287 if (urb->status || context->type == CONTEXT_BEACON_PACKET) { in vnt_tx_context_complete() 288 if (context->skb) in vnt_tx_context_complete() 289 ieee80211_free_txskb(priv->hw, context->skb); in vnt_tx_context_complete() [all …]
|
/drivers/gpu/drm/tegra/ |
D | drm.c | 255 static void tegra_drm_context_free(struct tegra_drm_context *context) in tegra_drm_context_free() argument 257 context->client->ops->close_channel(context); in tegra_drm_context_free() 258 kfree(context); in tegra_drm_context_free() 327 int tegra_drm_submit(struct tegra_drm_context *context, in tegra_drm_submit() argument 348 job = host1x_job_alloc(context->channel, args->num_cmdbufs, in tegra_drm_submit() 355 job->client = (u32)args->context; in tegra_drm_submit() 356 job->class = context->client->base.class; in tegra_drm_submit() 400 job->is_addr_reg = context->client->ops->is_addr_reg; in tegra_drm_submit() 408 err = host1x_job_pin(job, context->client->base.dev); in tegra_drm_submit() 430 static struct tegra_drm_context *tegra_drm_get_context(__u64 context) in tegra_drm_get_context() argument [all …]
|
/drivers/isdn/hisax/ |
D | hfc_usb.c | 260 hfcusb_data *hfc = (hfcusb_data *) urb->context; in ctrl_complete() 429 usb_complete_t complete, void *context) in fill_isoc_urb() argument 438 urb->context = context; in fill_isoc_urb() 544 iso_urb_struct *context_iso_urb = (iso_urb_struct *) urb->context; in tx_iso_complete() 594 tx_iso_complete, urb->context); in tx_iso_complete() 682 iso_urb_struct *context_iso_urb = (iso_urb_struct *) urb->context; in rx_iso_complete() 762 rx_iso_complete, urb->context); in rx_iso_complete() 855 usb_fifo *fifo = (usb_fifo *) urb->context; in rx_int_complete() 1260 hfcusb_data *context; in hfc_usb_probe() local 1359 if (!(context = kzalloc(sizeof(hfcusb_data), GFP_KERNEL))) in hfc_usb_probe() [all …]
|
/drivers/net/ethernet/microchip/ |
D | encx24j600-regmap.c | 54 static void regmap_lock_mutex(void *context) in regmap_lock_mutex() argument 56 struct encx24j600_context *ctx = context; in regmap_lock_mutex() 60 static void regmap_unlock_mutex(void *context) in regmap_unlock_mutex() argument 62 struct encx24j600_context *ctx = context; in regmap_unlock_mutex() 66 static int regmap_encx24j600_sfr_read(void *context, u8 reg, u8 *val, in regmap_encx24j600_sfr_read() argument 69 struct encx24j600_context *ctx = context; in regmap_encx24j600_sfr_read() 173 static int regmap_encx24j600_sfr_write(void *context, u8 reg, u8 *val, in regmap_encx24j600_sfr_write() argument 176 struct encx24j600_context *ctx = context; in regmap_encx24j600_sfr_write() 192 static int regmap_encx24j600_reg_update_bits(void *context, unsigned int reg, in regmap_encx24j600_reg_update_bits() argument 196 struct encx24j600_context *ctx = context; in regmap_encx24j600_reg_update_bits() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | doorbell.c | 46 int mlx5_ib_db_map_user(struct mlx5_ib_ucontext *context, unsigned long virt, in mlx5_ib_db_map_user() argument 52 mutex_lock(&context->db_page_mutex); in mlx5_ib_db_map_user() 54 list_for_each_entry(page, &context->db_page_list, list) in mlx5_ib_db_map_user() 66 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, in mlx5_ib_db_map_user() 74 list_add(&page->list, &context->db_page_list); in mlx5_ib_db_map_user() 82 mutex_unlock(&context->db_page_mutex); in mlx5_ib_db_map_user() 87 void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) in mlx5_ib_db_unmap_user() argument 89 mutex_lock(&context->db_page_mutex); in mlx5_ib_db_unmap_user() 97 mutex_unlock(&context->db_page_mutex); in mlx5_ib_db_unmap_user()
|
/drivers/infiniband/hw/mlx4/ |
D | doorbell.c | 44 int mlx4_ib_db_map_user(struct mlx4_ib_ucontext *context, unsigned long virt, in mlx4_ib_db_map_user() argument 50 mutex_lock(&context->db_page_mutex); in mlx4_ib_db_map_user() 52 list_for_each_entry(page, &context->db_page_list, list) in mlx4_ib_db_map_user() 64 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK, in mlx4_ib_db_map_user() 72 list_add(&page->list, &context->db_page_list); in mlx4_ib_db_map_user() 80 mutex_unlock(&context->db_page_mutex); in mlx4_ib_db_map_user() 85 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) in mlx4_ib_db_unmap_user() argument 87 mutex_lock(&context->db_page_mutex); in mlx4_ib_db_unmap_user() 95 mutex_unlock(&context->db_page_mutex); in mlx4_ib_db_unmap_user()
|
/drivers/gpio/ |
D | gpio-omap.c | 57 struct gpio_regs context; member 112 bank->context.oe = l; in omap_set_gpio_direction() 125 bank->context.dataout |= l; in omap_set_gpio_dataout_reg() 128 bank->context.dataout &= ~l; in omap_set_gpio_dataout_reg() 148 bank->context.dataout = l; in omap_set_gpio_dataout_mask() 256 bank->context.debounce = debounce; in omap2_set_gpio_debounce() 257 bank->context.debounce_en = val; in omap2_set_gpio_debounce() 282 bank->context.debounce_en &= ~gpio_bit; in omap_clear_gpio_debounce() 283 writel_relaxed(bank->context.debounce_en, in omap_clear_gpio_debounce() 287 bank->context.debounce = 0; in omap_clear_gpio_debounce() [all …]
|
/drivers/net/phy/ |
D | at803x.c | 66 struct at803x_context *context) in at803x_context_save() argument 68 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save() 69 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save() 70 context->control1000 = phy_read(phydev, MII_CTRL1000); in at803x_context_save() 71 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_context_save() 72 context->smart_speed = phy_read(phydev, AT803X_SMART_SPEED); in at803x_context_save() 73 context->led_control = phy_read(phydev, AT803X_LED_CONTROL); in at803x_context_save() 78 const struct at803x_context *context) in at803x_context_restore() argument 80 phy_write(phydev, MII_BMCR, context->bmcr); in at803x_context_restore() 81 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore() [all …]
|