/linux-4.1.27/drivers/crypto/qat/qat_common/ |
D | qat_hal.c | 78 #define AE(handle, ae) handle->hal_handle->aes[ae] argument 111 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument 114 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx() 118 static int qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument 125 *value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr() 126 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr() 134 static int qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument 141 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr() 142 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr() 150 static void qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument [all …]
|
D | icp_qat_hal.h | 102 #define SET_CAP_CSR(handle, csr, val) \ argument 103 ADF_CSR_WR(handle->hal_cap_g_ctl_csr_addr_v, csr, val) 104 #define GET_CAP_CSR(handle, csr) \ argument 105 ADF_CSR_RD(handle->hal_cap_g_ctl_csr_addr_v, csr) 106 #define SET_GLB_CSR(handle, csr, val) SET_CAP_CSR(handle, csr + GLOBAL_CSR, val) argument 107 #define GET_GLB_CSR(handle, csr) GET_CAP_CSR(handle, GLOBAL_CSR + csr) argument 108 #define AE_CSR(handle, ae) \ argument 109 (handle->hal_cap_ae_local_csr_addr_v + \ 110 ((ae & handle->hal_handle->ae_mask) << 12)) 111 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & csr)) argument [all …]
|
D | adf_common_drv.h | 143 void qat_hal_deinit(struct icp_qat_fw_loader_handle *handle); 144 void qat_hal_start(struct icp_qat_fw_loader_handle *handle, unsigned char ae, 146 void qat_hal_stop(struct icp_qat_fw_loader_handle *handle, unsigned char ae, 148 void qat_hal_reset(struct icp_qat_fw_loader_handle *handle); 149 int qat_hal_clr_reset(struct icp_qat_fw_loader_handle *handle); 150 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, 152 int qat_hal_set_ae_lm_mode(struct icp_qat_fw_loader_handle *handle, 155 int qat_hal_set_ae_ctx_mode(struct icp_qat_fw_loader_handle *handle, 157 int qat_hal_set_ae_nn_mode(struct icp_qat_fw_loader_handle *handle, 159 void qat_hal_set_pc(struct icp_qat_fw_loader_handle *handle, [all …]
|
D | qat_uclo.c | 142 static void qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument 151 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words() 158 static void qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument 170 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words() 176 static void qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument 193 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem() 199 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument 235 static int qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument 239 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae() 267 *handle, struct icp_qat_uof_initmem in qat_uclo_create_batch_init_list() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | handle.c | 34 nvkm_handle_init(struct nvkm_handle *handle) in nvkm_handle_init() argument 39 hprintk(handle, TRACE, "init running\n"); in nvkm_handle_init() 40 ret = nvkm_object_inc(handle->object); in nvkm_handle_init() 44 hprintk(handle, TRACE, "init children\n"); in nvkm_handle_init() 45 list_for_each_entry(item, &handle->tree, head) { in nvkm_handle_init() 51 hprintk(handle, TRACE, "init completed\n"); in nvkm_handle_init() 54 hprintk(handle, ERROR, "init failed with %d\n", ret); in nvkm_handle_init() 55 list_for_each_entry_continue_reverse(item, &handle->tree, head) { in nvkm_handle_init() 59 nvkm_object_dec(handle->object, false); in nvkm_handle_init() 64 nvkm_handle_fini(struct nvkm_handle *handle, bool suspend) in nvkm_handle_fini() argument [all …]
|
D | namedb.c | 31 struct nvkm_handle *handle; in nvkm_namedb_lookup() local 33 list_for_each_entry(handle, &namedb->list, node) { in nvkm_namedb_lookup() 34 if (handle->name == name) in nvkm_namedb_lookup() 35 return handle; in nvkm_namedb_lookup() 44 struct nvkm_handle *handle; in nvkm_namedb_lookup_class() local 46 list_for_each_entry(handle, &namedb->list, node) { in nvkm_namedb_lookup_class() 47 if (nv_mclass(handle->object) == oclass) in nvkm_namedb_lookup_class() 48 return handle; in nvkm_namedb_lookup_class() 57 struct nvkm_handle *handle; in nvkm_namedb_lookup_vinst() local 59 list_for_each_entry(handle, &namedb->list, node) { in nvkm_namedb_lookup_vinst() [all …]
|
D | ioctl.c | 34 nvkm_ioctl_nop(struct nvkm_handle *handle, void *data, u32 size) in nvkm_ioctl_nop() argument 36 struct nvkm_object *object = handle->object; in nvkm_ioctl_nop() 51 nvkm_ioctl_sclass(struct nvkm_handle *handle, void *data, u32 size) in nvkm_ioctl_sclass() argument 53 struct nvkm_object *object = handle->object; in nvkm_ioctl_sclass() 84 nvkm_ioctl_new(struct nvkm_handle *handle, void *data, u32 size) in nvkm_ioctl_new() argument 89 struct nvkm_client *client = nvkm_client(handle->object); in nvkm_ioctl_new() 100 _handle = args->v0.handle; in nvkm_ioctl_new() 110 if (!nv_iclass(handle->object, NV_PARENT_CLASS)) { in nvkm_ioctl_new() 111 nv_debug(handle->object, "cannot have children (ctor)\n"); in nvkm_ioctl_new() 116 parent = nv_parent(handle->object); in nvkm_ioctl_new() [all …]
|
D | ramht.c | 28 nvkm_ramht_hash(struct nvkm_ramht *ramht, int chid, u32 handle) in nvkm_ramht_hash() argument 32 while (handle) { in nvkm_ramht_hash() 33 hash ^= (handle & ((1 << ramht->bits) - 1)); in nvkm_ramht_hash() 34 handle >>= ramht->bits; in nvkm_ramht_hash() 43 nvkm_ramht_insert(struct nvkm_ramht *ramht, int chid, u32 handle, u32 context) in nvkm_ramht_insert() argument 48 co = ho = nvkm_ramht_hash(ramht, chid, handle); in nvkm_ramht_insert() 51 nv_wo32(ramht, co + 0, handle); in nvkm_ramht_insert() 78 .handle = 0x0000abcd,
|
D | parent.c | 29 nvkm_parent_sclass(struct nvkm_object *parent, u16 handle, in nvkm_parent_sclass() argument 40 if ((sclass->oclass->handle & 0xffff) == handle) { in nvkm_parent_sclass() 61 if ((oclass->handle & 0xffff) == handle) { in nvkm_parent_sclass() 88 lclass[nr] = sclass->oclass->handle & 0xffff; in nvkm_parent_lclass() 98 lclass[nr] = oclass->handle & 0xffff; in nvkm_parent_lclass()
|
/linux-4.1.27/fs/ext4/ |
D | ext4_jbd2.c | 12 handle_t *handle = current->journal_info; in ext4_get_nojournal() local 13 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal() 18 handle = (handle_t *)ref_cnt; in ext4_get_nojournal() 20 current->journal_info = handle; in ext4_get_nojournal() 21 return handle; in ext4_get_nojournal() 26 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument 28 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal() 33 handle = (handle_t *)ref_cnt; in ext4_put_nojournal() 35 current->journal_info = handle; in ext4_put_nojournal() 80 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument [all …]
|
D | ext4_jbd2.h | 180 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument 187 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add() 192 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in ext4_journal_callback_add() 202 static inline bool ext4_journal_callback_try_del(handle_t *handle, in ext4_journal_callback_try_del() argument 207 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_try_del() 217 ext4_mark_iloc_dirty(handle_t *handle, 226 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode, 229 int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode); 235 handle_t *handle, struct buffer_head *bh); 237 int __ext4_forget(const char *where, unsigned int line, handle_t *handle, [all …]
|
D | migrate.c | 28 static int finish_range(handle_t *handle, struct inode *inode, in finish_range() argument 63 if (needed && ext4_handle_has_enough_credits(handle, in finish_range() 66 retval = ext4_journal_restart(handle, needed); in finish_range() 71 retval = ext4_journal_extend(handle, needed); in finish_range() 77 retval = ext4_journal_restart(handle, needed); in finish_range() 83 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range() 92 static int update_extent_range(handle_t *handle, struct inode *inode, in update_extent_range() argument 110 retval = finish_range(handle, inode, lb); in update_extent_range() 117 static int update_ind_extent_range(handle_t *handle, struct inode *inode, in update_ind_extent_range() argument 133 retval = update_extent_range(handle, inode, in update_ind_extent_range() [all …]
|
D | indirect.c | 321 static int ext4_alloc_branch(handle_t *handle, in ext4_alloc_branch() argument 333 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch() 335 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch() 354 err = ext4_journal_get_create_access(handle, bh); in ext4_alloc_branch() 374 err = ext4_handle_dirty_metadata(handle, ar->inode, bh); in ext4_alloc_branch() 388 ext4_forget(handle, 1, ar->inode, branch[i].bh, in ext4_alloc_branch() 390 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch() 411 static int ext4_splice_branch(handle_t *handle, in ext4_splice_branch() argument 426 err = ext4_journal_get_write_access(handle, where->bh); in ext4_splice_branch() 457 err = ext4_handle_dirty_metadata(handle, ar->inode, where->bh); in ext4_splice_branch() [all …]
|
D | namei.c | 50 static struct buffer_head *ext4_append(handle_t *handle, in ext4_append() argument 64 bh = ext4_bread(handle, inode, *block, 1); in ext4_append() 70 err = ext4_journal_get_write_access(handle, bh); in ext4_append() 272 static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry, 374 int ext4_handle_dirty_dirent_node(handle_t *handle, in ext4_handle_dirty_dirent_node() argument 379 return ext4_handle_dirty_metadata(handle, inode, bh); in ext4_handle_dirty_dirent_node() 485 static inline int ext4_handle_dirty_dx_node(handle_t *handle, in ext4_handle_dirty_dx_node() argument 490 return ext4_handle_dirty_metadata(handle, inode, bh); in ext4_handle_dirty_dx_node() 1686 static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, in do_split() argument 1706 bh2 = ext4_append(handle, dir, &newblock); in do_split() [all …]
|
D | inline.c | 246 static int ext4_create_inline_data(handle_t *handle, in ext4_create_inline_data() argument 264 error = ext4_journal_get_write_access(handle, is.iloc.bh); in ext4_create_inline_data() 286 error = ext4_xattr_ibody_inline_set(handle, inode, &i, &is); in ext4_create_inline_data() 303 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); in ext4_create_inline_data() 310 static int ext4_update_inline_data(handle_t *handle, struct inode *inode, in ext4_update_inline_data() argument 348 error = ext4_journal_get_write_access(handle, is.iloc.bh); in ext4_update_inline_data() 356 error = ext4_xattr_ibody_inline_set(handle, inode, &i, &is); in ext4_update_inline_data() 366 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); in ext4_update_inline_data() 374 static int ext4_prepare_inline_data(handle_t *handle, struct inode *inode, in ext4_prepare_inline_data() argument 390 ret = ext4_update_inline_data(handle, inode, len); in ext4_prepare_inline_data() [all …]
|
D | inode.c | 134 static int ext4_bh_delay_or_unwritten(handle_t *handle, struct buffer_head *bh); 157 int ext4_truncate_restart_trans(handle_t *handle, struct inode *inode, in ext4_truncate_restart_trans() argument 169 jbd_debug(2, "restarting handle %p\n", handle); in ext4_truncate_restart_trans() 171 ret = ext4_journal_restart(handle, nblocks); in ext4_truncate_restart_trans() 183 handle_t *handle; in ext4_evict_inode() local 237 handle = ext4_journal_start(inode, EXT4_HT_TRUNCATE, in ext4_evict_inode() 239 if (IS_ERR(handle)) { in ext4_evict_inode() 240 ext4_std_error(inode->i_sb, PTR_ERR(handle)); in ext4_evict_inode() 252 ext4_handle_sync(handle); in ext4_evict_inode() 254 err = ext4_mark_inode_dirty(handle, inode); in ext4_evict_inode() [all …]
|
D | extents.c | 97 static int ext4_split_extent(handle_t *handle, 104 static int ext4_split_extent_at(handle_t *handle, 114 static int ext4_ext_truncate_extend_restart(handle_t *handle, in ext4_ext_truncate_extend_restart() argument 120 if (!ext4_handle_valid(handle)) in ext4_ext_truncate_extend_restart() 122 if (handle->h_buffer_credits > needed) in ext4_ext_truncate_extend_restart() 124 err = ext4_journal_extend(handle, needed); in ext4_ext_truncate_extend_restart() 127 err = ext4_truncate_restart_trans(handle, inode, needed); in ext4_ext_truncate_extend_restart() 139 static int ext4_ext_get_access(handle_t *handle, struct inode *inode, in ext4_ext_get_access() argument 145 return ext4_journal_get_write_access(handle, path->p_bh); in ext4_ext_get_access() 158 int __ext4_ext_dirty(const char *where, unsigned int line, handle_t *handle, in __ext4_ext_dirty() argument [all …]
|
D | resize.c | 354 static struct buffer_head *bclean(handle_t *handle, struct super_block *sb, in bclean() argument 364 if ((err = ext4_journal_get_write_access(handle, bh))) { in bclean() 380 static int extend_or_restart_transaction(handle_t *handle, int thresh) in extend_or_restart_transaction() argument 384 if (ext4_handle_has_enough_credits(handle, thresh)) in extend_or_restart_transaction() 387 err = ext4_journal_extend(handle, EXT4_MAX_TRANS_DATA); in extend_or_restart_transaction() 391 err = ext4_journal_restart(handle, EXT4_MAX_TRANS_DATA); in extend_or_restart_transaction() 408 static int set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle, in set_flexbg_block_bitmap() argument 434 err = extend_or_restart_transaction(handle, 1); in set_flexbg_block_bitmap() 443 err = ext4_journal_get_write_access(handle, bh); in set_flexbg_block_bitmap() 450 err = ext4_handle_dirty_metadata(handle, NULL, bh); in set_flexbg_block_bitmap() [all …]
|
D | ioctl.c | 99 handle_t *handle; in swap_inode_boot_loader() local 132 handle = ext4_journal_start(inode_bl, EXT4_HT_MOVE_EXTENTS, 2); in swap_inode_boot_loader() 133 if (IS_ERR(handle)) { in swap_inode_boot_loader() 154 ext4_ext_tree_init(handle, inode_bl); in swap_inode_boot_loader() 170 err = ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader() 178 err = ext4_mark_inode_dirty(handle, inode_bl); in swap_inode_boot_loader() 185 ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader() 188 ext4_journal_stop(handle); in swap_inode_boot_loader() 224 handle_t *handle = NULL; in ext4_ioctl() local 284 handle = ext4_journal_start(inode, EXT4_HT_INODE, 1); in ext4_ioctl() [all …]
|
D | acl.c | 187 __ext4_set_acl(handle_t *handle, struct inode *inode, int type, in __ext4_set_acl() argument 204 ext4_mark_inode_dirty(handle, inode); in __ext4_set_acl() 226 error = ext4_xattr_set_handle(handle, inode, name_index, "", in __ext4_set_acl() 239 handle_t *handle; in ext4_set_acl() local 243 handle = ext4_journal_start(inode, EXT4_HT_XATTR, in ext4_set_acl() 245 if (IS_ERR(handle)) in ext4_set_acl() 246 return PTR_ERR(handle); in ext4_set_acl() 248 error = __ext4_set_acl(handle, inode, type, acl); in ext4_set_acl() 249 ext4_journal_stop(handle); in ext4_set_acl() 262 ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) in ext4_init_acl() argument [all …]
|
D | xattr.c | 160 static inline int ext4_handle_dirty_xattr_block(handle_t *handle, in ext4_handle_dirty_xattr_block() argument 165 return ext4_handle_dirty_metadata(handle, inode, bh); in ext4_handle_dirty_xattr_block() 525 static void ext4_xattr_update_super_block(handle_t *handle, in ext4_xattr_update_super_block() argument 532 if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) { in ext4_xattr_update_super_block() 534 ext4_handle_dirty_super(handle, sb); in ext4_xattr_update_super_block() 543 ext4_xattr_release_block(handle_t *handle, struct inode *inode, in ext4_xattr_release_block() argument 552 error = ext4_journal_get_write_access(handle, bh); in ext4_xattr_release_block() 563 ext4_free_blocks(handle, inode, bh, 0, 1, in ext4_xattr_release_block() 580 if (ext4_handle_valid(handle)) in ext4_xattr_release_block() 581 error = ext4_handle_dirty_xattr_block(handle, inode, in ext4_xattr_release_block() [all …]
|
/linux-4.1.27/drivers/net/ethernet/qualcomm/ |
D | qca_framing.c | 73 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument 78 switch (handle->state) { in qcafrm_fsm_decode() 82 handle->state--; in qcafrm_fsm_decode() 86 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode() 91 handle->state--; in qcafrm_fsm_decode() 100 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode() 102 handle->state--; in qcafrm_fsm_decode() 108 handle->offset = recv_byte; in qcafrm_fsm_decode() 109 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode() 112 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode() [all …]
|
/linux-4.1.27/drivers/pci/hotplug/ |
D | acpi_pcihp.c | 53 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument 58 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp() 61 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp() 87 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local 105 handle = acpi_find_root_bridge_handle(pdev); in acpi_get_hp_hw_control_from_firmware() 106 if (handle) { in acpi_get_hp_hw_control_from_firmware() 107 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_get_hp_hw_control_from_firmware() 110 status = acpi_pci_osc_control_set(handle, &flags, flags); in acpi_get_hp_hw_control_from_firmware() 119 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware() 120 if (!handle) { in acpi_get_hp_hw_control_from_firmware() [all …]
|
D | acpiphp_glue.c | 261 static acpi_status acpiphp_add_context(acpi_handle handle, u32 lvl, void *data, in acpiphp_add_context() argument 276 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr); in acpiphp_add_context() 279 acpi_handle_warn(handle, in acpiphp_add_context() 283 if (acpi_bus_get_device(handle, &adev)) in acpiphp_add_context() 293 acpi_handle_err(handle, "No hotplug context\n"); in acpiphp_add_context() 305 if (!is_dock_device(adev) && acpi_has_method(handle, "_EJ0")) in acpiphp_add_context() 308 if (acpi_has_method(handle, "_STA")) in acpiphp_add_context() 336 if ((acpi_pci_check_ejectable(pbus, handle) || is_dock_device(adev)) in acpiphp_add_context() 342 status = acpi_evaluate_integer(handle, "_SUN", NULL, &sun); in acpiphp_add_context() 469 acpi_bus_scan(adev->handle); in acpiphp_rescan_slot() [all …]
|
/linux-4.1.27/fs/ext3/ |
D | ext3_jbd.c | 7 int __ext3_journal_get_undo_access(const char *where, handle_t *handle, in __ext3_journal_get_undo_access() argument 10 int err = journal_get_undo_access(handle, bh); in __ext3_journal_get_undo_access() 12 ext3_journal_abort_handle(where, __func__, bh, handle,err); in __ext3_journal_get_undo_access() 16 int __ext3_journal_get_write_access(const char *where, handle_t *handle, in __ext3_journal_get_write_access() argument 19 int err = journal_get_write_access(handle, bh); in __ext3_journal_get_write_access() 21 ext3_journal_abort_handle(where, __func__, bh, handle,err); in __ext3_journal_get_write_access() 25 int __ext3_journal_forget(const char *where, handle_t *handle, in __ext3_journal_forget() argument 28 int err = journal_forget(handle, bh); in __ext3_journal_forget() 30 ext3_journal_abort_handle(where, __func__, bh, handle,err); in __ext3_journal_forget() 34 int __ext3_journal_revoke(const char *where, handle_t *handle, in __ext3_journal_revoke() argument [all …]
|
D | inode.c | 58 int ext3_forget(handle_t *handle, int is_metadata, struct inode *inode, in ext3_forget() argument 82 return ext3_journal_forget(handle, bh); in ext3_forget() 91 err = ext3_journal_revoke(handle, blocknr, bh); in ext3_forget() 154 static int try_to_extend_transaction(handle_t *handle, struct inode *inode) in try_to_extend_transaction() argument 156 if (handle->h_buffer_credits > EXT3_RESERVE_TRANS_BLOCKS) in try_to_extend_transaction() 158 if (!ext3_journal_extend(handle, blocks_for_truncate(inode))) in try_to_extend_transaction() 168 static int truncate_restart_transaction(handle_t *handle, struct inode *inode) in truncate_restart_transaction() argument 172 jbd_debug(2, "restarting handle %p\n", handle); in truncate_restart_transaction() 180 ret = ext3_journal_restart(handle, blocks_for_truncate(inode)); in truncate_restart_transaction() 192 handle_t *handle; in ext3_evict_inode() local [all …]
|
D | resize.c | 112 static struct buffer_head *bclean(handle_t *handle, struct super_block *sb, in bclean() argument 121 if ((err = ext3_journal_get_write_access(handle, bh))) { in bclean() 158 static int extend_or_restart_transaction(handle_t *handle, int thresh, in extend_or_restart_transaction() argument 163 if (handle->h_buffer_credits >= thresh) in extend_or_restart_transaction() 166 err = ext3_journal_extend(handle, EXT3_MAX_TRANS_DATA); in extend_or_restart_transaction() 170 err = ext3_journal_restart(handle, EXT3_MAX_TRANS_DATA); in extend_or_restart_transaction() 173 err = ext3_journal_get_write_access(handle, bh); in extend_or_restart_transaction() 197 handle_t *handle; in setup_new_group_blocks() local 204 handle = ext3_journal_start_sb(sb, EXT3_MAX_TRANS_DATA); in setup_new_group_blocks() 206 if (IS_ERR(handle)) in setup_new_group_blocks() [all …]
|
D | namei.c | 40 static struct buffer_head *ext3_append(handle_t *handle, in ext3_append() argument 48 if ((bh = ext3_dir_bread(handle, inode, *block, 1, err))) { in ext3_append() 51 *err = ext3_journal_get_write_access(handle, bh); in ext3_append() 165 static int ext3_dx_add_entry(handle_t *handle, struct dentry *dentry, 1138 static struct ext3_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, in do_split() argument 1153 bh2 = ext3_append (handle, dir, &newblock, &err); in do_split() 1161 err = ext3_journal_get_write_access(handle, *bh); in do_split() 1166 err = ext3_journal_get_write_access(handle, frame->bh); in do_split() 1210 err = ext3_journal_dirty_metadata (handle, bh2); in do_split() 1213 err = ext3_journal_dirty_metadata (handle, frame->bh); in do_split() [all …]
|
D | ioctl.c | 30 handle_t *handle = NULL; in ext3_ioctl() local 80 handle = ext3_journal_start(inode, 1); in ext3_ioctl() 81 if (IS_ERR(handle)) { in ext3_ioctl() 82 err = PTR_ERR(handle); in ext3_ioctl() 86 handle->h_sync = 1; in ext3_ioctl() 87 err = ext3_reserve_inode_write(handle, inode, &iloc); in ext3_ioctl() 98 err = ext3_mark_iloc_dirty(handle, inode, &iloc); in ext3_ioctl() 100 ext3_journal_stop(handle); in ext3_ioctl() 116 handle_t *handle; in ext3_ioctl() local 133 handle = ext3_journal_start(inode, 1); in ext3_ioctl() [all …]
|
D | ext3.h | 999 extern ext3_fsblk_t ext3_new_block (handle_t *handle, struct inode *inode, 1001 extern ext3_fsblk_t ext3_new_blocks (handle_t *handle, struct inode *inode, 1003 extern void ext3_free_blocks (handle_t *handle, struct inode *inode, 1005 extern void ext3_free_blocks_sb (handle_t *handle, struct super_block *sb, 1046 int ext3_forget(handle_t *handle, int is_metadata, struct inode *inode, 1050 int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, 1197 ext3_mark_iloc_dirty(handle_t *handle, 1206 int ext3_reserve_inode_write(handle_t *handle, struct inode *inode, 1209 int ext3_mark_inode_dirty(handle_t *handle, struct inode *inode); 1218 static inline void ext3_journal_release_buffer(handle_t *handle, in ext3_journal_release_buffer() argument [all …]
|
D | acl.c | 186 __ext3_set_acl(handle_t *handle, struct inode *inode, int type, in __ext3_set_acl() argument 203 ext3_mark_inode_dirty(handle, inode); in __ext3_set_acl() 225 error = ext3_xattr_set_handle(handle, inode, name_index, "", in __ext3_set_acl() 239 handle_t *handle; in ext3_set_acl() local 243 handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); in ext3_set_acl() 244 if (IS_ERR(handle)) in ext3_set_acl() 245 return PTR_ERR(handle); in ext3_set_acl() 246 error = __ext3_set_acl(handle, inode, type, acl); in ext3_set_acl() 247 ext3_journal_stop(handle); in ext3_set_acl() 260 ext3_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) in ext3_init_acl() argument [all …]
|
D | xattr.c | 456 static void ext3_xattr_update_super_block(handle_t *handle, in ext3_xattr_update_super_block() argument 462 if (ext3_journal_get_write_access(handle, EXT3_SB(sb)->s_sbh) == 0) { in ext3_xattr_update_super_block() 464 ext3_journal_dirty_metadata(handle, EXT3_SB(sb)->s_sbh); in ext3_xattr_update_super_block() 473 ext3_xattr_release_block(handle_t *handle, struct inode *inode, in ext3_xattr_release_block() argument 480 error = ext3_journal_get_write_access(handle, bh); in ext3_xattr_release_block() 490 ext3_free_blocks(handle, inode, bh->b_blocknr, 1); in ext3_xattr_release_block() 492 ext3_forget(handle, 1, inode, bh, bh->b_blocknr); in ext3_xattr_release_block() 495 error = ext3_journal_dirty_metadata(handle, bh); in ext3_xattr_release_block() 497 handle->h_sync = 1; in ext3_xattr_release_block() 674 ext3_xattr_block_set(handle_t *handle, struct inode *inode, in ext3_xattr_block_set() argument [all …]
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
D | vmci_resource.c | 37 static unsigned int vmci_resource_hash(struct vmci_handle handle) in vmci_resource_hash() argument 39 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 45 static struct vmci_resource *vmci_resource_lookup(struct vmci_handle handle, in vmci_resource_lookup() argument 49 unsigned int idx = vmci_resource_hash(handle); in vmci_resource_lookup() 54 u32 cid = r->handle.context; in vmci_resource_lookup() 55 u32 rid = r->handle.resource; in vmci_resource_lookup() 58 rid == handle.resource && in vmci_resource_lookup() 59 (cid == handle.context || cid == VMCI_INVALID_ID)) { in vmci_resource_lookup() 87 struct vmci_handle handle; in vmci_resource_find_id() local 96 handle = vmci_make_handle(context_id, current_rid); in vmci_resource_find_id() [all …]
|
D | vmci_doorbell.c | 93 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags) in vmci_dbell_get_priv_flags() argument 95 if (priv_flags == NULL || handle.context == VMCI_INVALID_ID) in vmci_dbell_get_priv_flags() 98 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_dbell_get_priv_flags() 102 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags() 110 } else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_dbell_get_priv_flags() 117 *priv_flags = vmci_context_get_priv_flags(handle.context); in vmci_dbell_get_priv_flags() 237 static int dbell_link(struct vmci_handle handle, u32 notify_idx) in dbell_link() argument 245 link_msg.handle = handle; in dbell_link() 255 static int dbell_unlink(struct vmci_handle handle) in dbell_unlink() argument 263 unlink_msg.handle = handle; in dbell_unlink() [all …]
|
D | vmci_context.c | 235 if (!vmci_handle_is_equal(node->handle, context_handle)) in ctx_fire_notification() 629 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification() 634 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification() 664 struct vmci_handle handle; in vmci_ctx_remove_notification() local 671 handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_remove_notification() 676 if (vmci_handle_is_equal(notifier->handle, handle)) { in vmci_ctx_remove_notification() 720 notifiers[i++] = entry->handle.context; in vmci_ctx_get_chkpt_notifiers() 747 dbells[i].handle = vmci_handle_arr_get_entry( in vmci_ctx_get_chkpt_doorbells() 899 struct vmci_handle handle; in vmci_ctx_rcv_notifications_release() local 908 handle = vmci_handle_arr_remove_tail( in vmci_ctx_rcv_notifications_release() [all …]
|
D | vmci_queue_pair.c | 171 struct vmci_handle handle; member 211 struct vmci_handle handle; member 892 struct vmci_handle handle) in qp_list_find() argument 896 if (vmci_handle_is_invalid(handle)) in qp_list_find() 900 if (vmci_handle_is_equal(entry->handle, handle)) in qp_list_find() 911 qp_guest_handle_to_entry(struct vmci_handle handle) in qp_guest_handle_to_entry() argument 914 struct qp_entry *qp = qp_list_find(&qp_guest_endpoints, handle); in qp_guest_handle_to_entry() 925 qp_broker_handle_to_entry(struct vmci_handle handle) in qp_broker_handle_to_entry() argument 928 struct qp_entry *qp = qp_list_find(&qp_broker_list, handle); in qp_broker_handle_to_entry() 939 static int qp_notify_peer_local(bool attach, struct vmci_handle handle) in qp_notify_peer_local() argument [all …]
|
D | vmci_queue_pair.h | 38 struct vmci_handle handle; member 51 struct vmci_handle handle; member 87 struct vmci_handle handle; member 100 struct vmci_handle handle; member 150 int vmci_qp_broker_alloc(struct vmci_handle handle, u32 peer, 155 int vmci_qp_broker_set_page_store(struct vmci_handle handle, 158 int vmci_qp_broker_detach(struct vmci_handle handle, struct vmci_ctx *context); 162 int vmci_qp_alloc(struct vmci_handle *handle, 168 int vmci_qp_broker_map(struct vmci_handle handle, 170 int vmci_qp_broker_unmap(struct vmci_handle handle,
|
D | vmci_handle_array.c | 48 struct vmci_handle handle) in vmci_handle_arr_append_entry() argument 66 array->entries[array->size] = handle; in vmci_handle_arr_append_entry() 76 struct vmci_handle handle = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_entry() local 81 handle = array->entries[i]; in vmci_handle_arr_remove_entry() 89 return handle; in vmci_handle_arr_remove_entry() 97 struct vmci_handle handle = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_tail() local 101 handle = array->entries[array->size]; in vmci_handle_arr_remove_tail() 105 return handle; in vmci_handle_arr_remove_tail()
|
D | vmci_doorbell.h | 29 struct vmci_handle handle; member 41 struct vmci_handle handle; member 45 int vmci_dbell_host_context_notify(u32 src_cid, struct vmci_handle handle); 46 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags);
|
D | vmci_context.h | 45 struct vmci_handle handle; member 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); 162 int vmci_ctx_dbell_create(u32 context_id, struct vmci_handle handle); 163 int vmci_ctx_dbell_destroy(u32 context_id, struct vmci_handle handle); 165 int vmci_ctx_notify_dbell(u32 cid, struct vmci_handle handle,
|
/linux-4.1.27/drivers/input/ |
D | evbug.c | 41 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument 44 dev_name(&handle->dev->dev), type, code, value); in evbug_event() 50 struct input_handle *handle; in evbug_connect() local 53 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect() 54 if (!handle) in evbug_connect() 57 handle->dev = dev; in evbug_connect() 58 handle->handler = handler; in evbug_connect() 59 handle->name = "evbug"; in evbug_connect() 61 error = input_register_handle(handle); in evbug_connect() 65 error = input_open_device(handle); in evbug_connect() [all …]
|
D | apm-power.c | 35 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument 56 struct input_handle *handle; in apmpower_connect() local 59 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect() 60 if (!handle) in apmpower_connect() 63 handle->dev = dev; in apmpower_connect() 64 handle->handler = handler; in apmpower_connect() 65 handle->name = "apm-power"; in apmpower_connect() 67 error = input_register_handle(handle); in apmpower_connect() 71 kfree(handle); in apmpower_connect() 75 error = input_open_device(handle); in apmpower_connect() [all …]
|
D | input.c | 96 static unsigned int input_to_handler(struct input_handle *handle, in input_to_handler() argument 99 struct input_handler *handler = handle->handler; in input_to_handler() 105 if (handler->filter(handle, v->type, v->code, v->value)) in input_to_handler() 118 handler->events(handle, vals, count); in input_to_handler() 121 handler->event(handle, v->type, v->code, v->value); in input_to_handler() 134 struct input_handle *handle; in input_pass_values() local 142 handle = rcu_dereference(dev->grab); in input_pass_values() 143 if (handle) { in input_pass_values() 144 count = input_to_handler(handle, vals, count); in input_pass_values() 146 list_for_each_entry_rcu(handle, &dev->h_list, d_node) in input_pass_values() [all …]
|
/linux-4.1.27/drivers/sh/intc/ |
D | chip.c | 16 void _intc_enable(struct irq_data *data, unsigned long handle) in _intc_enable() argument 23 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { in _intc_enable() 28 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in _intc_enable() 29 intc_enable_fns[_INTC_MODE(handle)](addr, handle, intc_reg_fns\ in _intc_enable() 30 [_INTC_FN(handle)], irq); in _intc_enable() 45 unsigned long handle = (unsigned long)irq_data_get_irq_chip_data(data); in intc_disable() local 51 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { in intc_disable() 56 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu); in intc_disable() 57 intc_disable_fns[_INTC_MODE(handle)](addr, handle,intc_reg_fns\ in intc_disable() 58 [_INTC_FN(handle)], irq); in intc_disable() [all …]
|
D | access.c | 56 unsigned int handle) in intc_set_field_from_handle() argument 58 unsigned int width = _INTC_WIDTH(handle); in intc_set_field_from_handle() 59 unsigned int shift = _INTC_SHIFT(handle); in intc_set_field_from_handle() 66 unsigned long intc_get_field_from_handle(unsigned int value, unsigned int handle) in intc_get_field_from_handle() argument 68 unsigned int width = _INTC_WIDTH(handle); in intc_get_field_from_handle() 69 unsigned int shift = _INTC_SHIFT(handle); in intc_get_field_from_handle() 166 unsigned long handle, in intc_mode_field() argument 172 return fn(addr, handle, ((1 << _INTC_WIDTH(handle)) - 1)); in intc_mode_field() 176 unsigned long handle, in intc_mode_zero() argument 182 return fn(addr, handle, 0); in intc_mode_zero() [all …]
|
D | balancing.c | 17 unsigned long handle = dist_handle[irq]; in intc_balancing_enable() local 20 if (irq_balancing_disabled(irq) || !handle) in intc_balancing_enable() 23 addr = INTC_REG(d, _INTC_ADDR_D(handle), 0); in intc_balancing_enable() 24 intc_reg_fns[_INTC_FN(handle)](addr, handle, 1); in intc_balancing_enable() 30 unsigned long handle = dist_handle[irq]; in intc_balancing_disable() local 33 if (irq_balancing_disabled(irq) || !handle) in intc_balancing_disable() 36 addr = INTC_REG(d, _INTC_ADDR_D(handle), 0); in intc_balancing_disable() 37 intc_reg_fns[_INTC_FN(handle)](addr, handle, 0); in intc_balancing_disable()
|
D | internals.h | 33 unsigned long handle; member 50 unsigned long handle; member 126 (*intc_enable_fns[])(unsigned long addr, unsigned long handle, 131 (*intc_disable_fns[])(unsigned long addr, unsigned long handle, 136 (*intc_enable_noprio_fns[])(unsigned long addr, unsigned long handle, 145 unsigned int handle); 147 unsigned int handle); 165 void _intc_enable(struct irq_data *data, unsigned long handle);
|
D | handle.c | 207 unsigned long handle, int do_enable) in intc_enable_disable() argument 217 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { in intc_enable_disable() 218 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in intc_enable_disable() 219 fn = intc_enable_noprio_fns[_INTC_MODE(handle)]; in intc_enable_disable() 220 fn(addr, handle, intc_reg_fns[_INTC_FN(handle)], 0); in intc_enable_disable() 223 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { in intc_enable_disable() 224 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu); in intc_enable_disable() 225 fn = intc_disable_fns[_INTC_MODE(handle)]; in intc_enable_disable() 226 fn(addr, handle, intc_reg_fns[_INTC_FN(handle)], 0); in intc_enable_disable()
|
/linux-4.1.27/fs/jbd2/ |
D | transaction.c | 257 static int start_this_handle(journal_t *journal, handle_t *handle, in start_this_handle() argument 261 int blocks = handle->h_buffer_credits; in start_this_handle() 276 if (handle->h_rsv_handle) in start_this_handle() 277 rsv_blocks = handle->h_rsv_handle->h_buffer_credits; in start_this_handle() 299 jbd_debug(3, "New handle %p going live.\n", handle); in start_this_handle() 320 if (!handle->h_reserved && journal->j_barrier_count) { in start_this_handle() 333 (handle->h_reserved || !journal->j_barrier_count)) { in start_this_handle() 343 if (!handle->h_reserved) { in start_this_handle() 354 handle->h_reserved = 0; in start_this_handle() 361 handle->h_transaction = transaction; in start_this_handle() [all …]
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | reset.c | 18 static int handle; /* reset pin handle */ variable 24 handle = of_get_named_gpio(of_find_node_by_path("/"), in of_platform_reset_gpio_probe() 27 if (!gpio_is_valid(handle)) { in of_platform_reset_gpio_probe() 29 handle, "reset"); in of_platform_reset_gpio_probe() 33 ret = gpio_request(handle, "reset"); in of_platform_reset_gpio_probe() 40 reset_val = gpio_get_value(handle); in of_platform_reset_gpio_probe() 45 ret = gpio_direction_output(handle, 0); in of_platform_reset_gpio_probe() 50 gpio_set_value(handle, 0); in of_platform_reset_gpio_probe() 53 handle, reset_val); in of_platform_reset_gpio_probe() 56 gpio_free(handle); in of_platform_reset_gpio_probe() [all …]
|
/linux-4.1.27/drivers/staging/android/ion/ |
D | ion.c | 342 struct ion_handle *handle; in ion_handle_create() local 344 handle = kzalloc(sizeof(struct ion_handle), GFP_KERNEL); in ion_handle_create() 345 if (!handle) in ion_handle_create() 347 kref_init(&handle->ref); in ion_handle_create() 348 RB_CLEAR_NODE(&handle->node); in ion_handle_create() 349 handle->client = client; in ion_handle_create() 352 handle->buffer = buffer; in ion_handle_create() 354 return handle; in ion_handle_create() 361 struct ion_handle *handle = container_of(kref, struct ion_handle, ref); in ion_handle_destroy() local 362 struct ion_client *client = handle->client; in ion_handle_destroy() [all …]
|
D | ion.h | 128 void ion_free(struct ion_client *client, struct ion_handle *handle); 146 int ion_phys(struct ion_client *client, struct ion_handle *handle, 158 struct ion_handle *handle); 168 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle); 175 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle); 183 struct ion_handle *handle); 190 int ion_share_dma_buf_fd(struct ion_client *client, struct ion_handle *handle);
|
D | ion_cma_heap.c | 38 dma_addr_t handle; member 64 info->cpu_addr = dma_alloc_coherent(dev, len, &(info->handle), in ion_cma_allocate() 77 (dev, info->table, info->cpu_addr, info->handle, len)) in ion_cma_allocate() 87 dma_free_coherent(dev, len, info->cpu_addr, info->handle); in ion_cma_allocate() 101 dma_free_coherent(dev, buffer->size, info->cpu_addr, info->handle); in ion_cma_free() 117 &info->handle); in ion_cma_phys() 119 *addr = info->handle; in ion_cma_phys() 145 return dma_mmap_coherent(dev, vma, info->cpu_addr, info->handle, in ion_cma_mmap()
|
D | compat_ion.c | 30 compat_int_t handle; member 39 compat_int_t handle; member 66 err |= get_user(i, &data32->handle); in compat_get_ion_allocation_data() 67 err |= put_user(i, &data->handle); in compat_get_ion_allocation_data() 79 err = get_user(i, &data32->handle); in compat_get_ion_handle_data() 80 err |= put_user(i, &data->handle); in compat_get_ion_handle_data() 102 err |= get_user(i, &data->handle); in compat_put_ion_allocation_data() 103 err |= put_user(i, &data32->handle); in compat_put_ion_allocation_data()
|
/linux-4.1.27/kernel/power/ |
D | swap.c | 221 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument 230 swsusp_header->image = handle->first_sector; in mark_swapfiles() 233 swsusp_header->crc32 = handle->crc32; in mark_swapfiles() 311 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument 313 if (handle->cur) in release_swap_writer() 314 free_page((unsigned long)handle->cur); in release_swap_writer() 315 handle->cur = NULL; in release_swap_writer() 318 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument 329 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer() 330 if (!handle->cur) { in get_swap_writer() [all …]
|
D | power.h | 132 #define data_of(handle) ((handle).buffer) argument 136 extern int snapshot_read_next(struct snapshot_handle *handle); 137 extern int snapshot_write_next(struct snapshot_handle *handle); 138 extern void snapshot_write_finalize(struct snapshot_handle *handle); 139 extern int snapshot_image_loaded(struct snapshot_handle *handle);
|
/linux-4.1.27/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 444 static int uvc_acquire_privileges(struct uvc_fh *handle) in uvc_acquire_privileges() argument 447 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_acquire_privileges() 451 if (atomic_inc_return(&handle->stream->active) != 1) { in uvc_acquire_privileges() 452 atomic_dec(&handle->stream->active); in uvc_acquire_privileges() 456 handle->state = UVC_HANDLE_ACTIVE; in uvc_acquire_privileges() 460 static void uvc_dismiss_privileges(struct uvc_fh *handle) in uvc_dismiss_privileges() argument 462 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_dismiss_privileges() 463 atomic_dec(&handle->stream->active); in uvc_dismiss_privileges() 465 handle->state = UVC_HANDLE_PASSIVE; in uvc_dismiss_privileges() 468 static int uvc_has_privileges(struct uvc_fh *handle) in uvc_has_privileges() argument [all …]
|
/linux-4.1.27/kernel/events/ |
D | ring_buffer.c | 20 static void perf_output_wakeup(struct perf_output_handle *handle) in perf_output_wakeup() argument 22 atomic_set(&handle->rb->poll, POLLIN); in perf_output_wakeup() 24 handle->event->pending_wakeup = 1; in perf_output_wakeup() 25 irq_work_queue(&handle->event->pending); in perf_output_wakeup() 36 static void perf_output_get_handle(struct perf_output_handle *handle) in perf_output_get_handle() argument 38 struct ring_buffer *rb = handle->rb; in perf_output_get_handle() 42 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 45 static void perf_output_put_handle(struct perf_output_handle *handle) in perf_output_put_handle() argument 47 struct ring_buffer *rb = handle->rb; in perf_output_put_handle() 98 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle() [all …]
|
D | internal.h | 91 struct perf_output_handle *handle, 129 func_name(struct perf_output_handle *handle, \ 135 size = min(handle->size, len); \ 136 written = memcpy_func(handle->addr, buf, size); \ 140 handle->addr += written; \ 142 handle->size -= written; \ 143 if (!handle->size) { \ 144 struct ring_buffer *rb = handle->rb; \ 146 handle->page++; \ 147 handle->page &= rb->nr_pages - 1; \ [all …]
|
/linux-4.1.27/fs/ |
D | fhandle.c | 22 struct file_handle *handle = NULL; in do_sys_name_to_handle() local 38 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle() 40 if (!handle) in do_sys_name_to_handle() 48 (struct fid *)handle->f_handle, in do_sys_name_to_handle() 50 handle->handle_type = retval; in do_sys_name_to_handle() 53 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle() 54 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle() 72 copy_to_user(ufh, handle, in do_sys_name_to_handle() 75 kfree(handle); in do_sys_name_to_handle() 93 struct file_handle __user *, handle, int __user *, mnt_id, in SYSCALL_DEFINE5() [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | ioapic.c | 33 acpi_handle handle; member 64 static bool acpi_is_ioapic(acpi_handle handle, char **type) in acpi_is_ioapic() argument 71 if (!acpi_has_method(handle, "_GSB")) in acpi_is_ioapic() 74 status = acpi_get_object_info(handle, &info); in acpi_is_ioapic() 93 static acpi_status handle_ioapic_add(acpi_handle handle, u32 lvl, in handle_ioapic_add() argument 103 if (!acpi_is_ioapic(handle, &type)) in handle_ioapic_add() 108 if (ioapic->handle == handle) { in handle_ioapic_add() 113 status = acpi_evaluate_integer(handle, "_GSB", NULL, &gsi_base); in handle_ioapic_add() 115 acpi_handle_warn(handle, "failed to evaluate _GSB method\n"); in handle_ioapic_add() 125 ioapic->handle = handle; in handle_ioapic_add() [all …]
|
D | utils.c | 268 (void *)element->reference.handle; in acpi_extract_package() 290 acpi_evaluate_integer(acpi_handle handle, in acpi_evaluate_integer() argument 303 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_integer() 305 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_integer() 310 acpi_util_eval_error(handle, pathname, AE_BAD_DATA); in acpi_evaluate_integer() 324 acpi_evaluate_reference(acpi_handle handle, in acpi_evaluate_reference() argument 342 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_reference() 350 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference() 355 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference() 360 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference() [all …]
|
D | scan.c | 191 acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias() 397 static acpi_status acpi_bus_offline(acpi_handle handle, u32 lvl, void *data, in acpi_bus_offline() argument 405 if (acpi_bus_get_device(handle, &device)) in acpi_bus_offline() 445 static acpi_status acpi_bus_online(acpi_handle handle, u32 lvl, void *data, in acpi_bus_online() argument 451 if (acpi_bus_get_device(handle, &device)) in acpi_bus_online() 469 acpi_handle handle = device->handle; in acpi_scan_try_to_offline() local 482 status = acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() 487 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() 491 acpi_bus_offline(handle, 0, (void *)false, (void **)&errdev); in acpi_scan_try_to_offline() 494 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline() [all …]
|
D | bus.c | 95 acpi_status acpi_bus_get_status_handle(acpi_handle handle, in acpi_bus_get_status_handle() argument 100 status = acpi_evaluate_integer(handle, "_STA", NULL, sta); in acpi_bus_get_status_handle() 117 status = acpi_bus_get_status_handle(device->handle, &sta); in acpi_bus_get_status() 135 void acpi_bus_private_data_handler(acpi_handle handle, in acpi_bus_private_data_handler() argument 142 int acpi_bus_attach_private_data(acpi_handle handle, void *data) in acpi_bus_attach_private_data() argument 146 status = acpi_attach_data(handle, in acpi_bus_attach_private_data() 149 acpi_handle_debug(handle, "Error attaching device data\n"); in acpi_bus_attach_private_data() 157 int acpi_bus_get_private_data(acpi_handle handle, void **data) in acpi_bus_get_private_data() argument 164 status = acpi_get_data(handle, acpi_bus_private_data_handler, data); in acpi_bus_get_private_data() 166 acpi_handle_debug(handle, "No context for object\n"); in acpi_bus_get_private_data() [all …]
|
D | video_detect.c | 50 acpi_backlight_cap_match(acpi_handle handle, u32 level, void *context, in acpi_backlight_cap_match() argument 55 if (acpi_has_method(handle, "_BCM") && in acpi_backlight_cap_match() 56 acpi_has_method(handle, "_BCL")) { in acpi_backlight_cap_match() 60 if (!acpi_has_method(handle, "_BQC")) in acpi_backlight_cap_match() 77 long acpi_is_video_device(acpi_handle handle) in acpi_is_video_device() argument 82 if (acpi_has_method(handle, "_DOD") || acpi_has_method(handle, "_DOS")) in acpi_is_video_device() 86 if (acpi_has_method(handle, "_ROM")) in acpi_is_video_device() 90 if (acpi_has_method(handle, "_VPO") && in acpi_is_video_device() 91 acpi_has_method(handle, "_GPD") && in acpi_is_video_device() 92 acpi_has_method(handle, "_SPD")) in acpi_is_video_device() [all …]
|
D | dock.c | 55 acpi_handle handle; member 154 static struct dock_station *find_dock_station(acpi_handle handle) in find_dock_station() argument 159 if (ds->handle == handle) in find_dock_station() 213 if (acpi_dock_match(adev->handle)) in is_dock_device() 237 status = acpi_evaluate_integer(ds->handle, "_STA", NULL, &sta); in dock_present() 296 int ret = acpi_bus_scan(adev->handle); in hotplug_dock_devices() 343 acpi_handle_info(ds->handle, "%s\n", dock ? "docking" : "undocking"); in handle_dock() 350 status = acpi_evaluate_integer(ds->handle, "_DCK", &arg_list, &value); in handle_dock() 352 acpi_handle_err(ds->handle, "Failed to execute _DCK (0x%x)\n", in handle_dock() 425 acpi_evaluate_lck(ds->handle, 0); in handle_eject_request() [all …]
|
D | pci_root.c | 87 int acpi_is_root_bridge(acpi_handle handle) in acpi_is_root_bridge() argument 92 ret = acpi_bus_get_device(handle, &device); in acpi_is_root_bridge() 124 static acpi_status try_get_root_bridge_busnr(acpi_handle handle, in try_get_root_bridge_busnr() argument 131 acpi_walk_resources(handle, METHOD_NAME__CRS, in try_get_root_bridge_busnr() 191 static acpi_status acpi_pci_run_osc(acpi_handle handle, in acpi_pci_run_osc() argument 202 status = acpi_run_osc(handle, &context); in acpi_pci_run_osc() 230 status = acpi_pci_run_osc(root->device->handle, capbuf, &result); in acpi_pci_query_osc() 249 struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle) in acpi_pci_find_root() argument 254 if (acpi_bus_get_device(handle, &device) || in acpi_pci_find_root() 266 acpi_handle handle; member [all …]
|
D | processor_pdc.c | 21 static bool __init processor_physically_present(acpi_handle handle) in processor_physically_present() argument 31 status = acpi_get_type(handle, &acpi_type); in processor_physically_present() 37 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in processor_physically_present() 43 status = acpi_evaluate_integer(handle, "_UID", NULL, &tmp); in processor_physically_present() 53 cpuid = acpi_get_cpuid(handle, type, acpi_id); in processor_physically_present() 116 acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) in acpi_processor_eval_pdc() argument 134 status = acpi_evaluate_object(handle, "_PDC", pdc_in, NULL); in acpi_processor_eval_pdc() 143 void acpi_processor_set_pdc(acpi_handle handle) in acpi_processor_set_pdc() argument 154 acpi_processor_eval_pdc(handle, obj_list); in acpi_processor_set_pdc() 162 early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv) in early_init_pdc() argument [all …]
|
D | pci_slot.c | 75 check_slot(acpi_handle handle, unsigned long long *sun) in check_slot() argument 82 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); in check_slot() 87 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in check_slot() 92 status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr); in check_slot() 99 status = acpi_evaluate_integer(handle, "_SUN", NULL, sun); in check_slot() 115 register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) in register_slot() argument 124 device = check_slot(handle, &sun); in register_slot() 165 acpi_handle handle = ACPI_HANDLE(bus->bridge); in acpi_pci_slot_enumerate() local 167 if (handle) { in acpi_pci_slot_enumerate() 169 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1, in acpi_pci_slot_enumerate()
|
D | power.c | 88 static struct acpi_power_resource *acpi_power_get_context(acpi_handle handle) in acpi_power_get_context() argument 92 if (acpi_bus_get_device(handle, &device)) in acpi_power_get_context() 98 static int acpi_power_resources_list_add(acpi_handle handle, in acpi_power_resources_list_add() argument 101 struct acpi_power_resource *resource = acpi_power_get_context(handle); in acpi_power_resources_list_add() 149 rhandle = element->reference.handle; in acpi_extract_power_resources() 168 static int acpi_power_get_state(acpi_handle handle, int *state) in acpi_power_get_state() argument 176 if (!handle || !state) in acpi_power_get_state() 179 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in acpi_power_get_state() 186 acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer); in acpi_power_get_state() 206 acpi_handle handle = resource->device.handle; in acpi_power_get_list_state() local [all …]
|
D | thermal.c | 211 status = acpi_evaluate_integer(tz->device->handle, "_TMP", NULL, &tmp); in acpi_thermal_get_temperature() 230 status = acpi_evaluate_integer(tz->device->handle, "_TZP", NULL, &tmp); in acpi_thermal_get_polling_frequency() 246 if (!acpi_has_method(tz->device->handle, "_SCP")) { in acpi_thermal_set_cooling_mode() 249 } else if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, in acpi_thermal_set_cooling_mode() 295 status = acpi_evaluate_integer(tz->device->handle, in acpi_thermal_trips_update() 336 status = acpi_evaluate_integer(tz->device->handle, in acpi_thermal_trips_update() 361 status = acpi_evaluate_integer(tz->device->handle, in acpi_thermal_trips_update() 372 tz->device->handle, "_TC1", in acpi_thermal_trips_update() 379 tz->device->handle, "_TC2", in acpi_thermal_trips_update() 386 tz->device->handle, "_TSP", in acpi_thermal_trips_update() [all …]
|
D | processor_core.c | 148 static phys_cpuid_t map_mat_entry(acpi_handle handle, int type, u32 acpi_id) in map_mat_entry() argument 155 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in map_mat_entry() 182 phys_cpuid_t acpi_get_phys_id(acpi_handle handle, int type, u32 acpi_id) in acpi_get_phys_id() argument 186 phys_id = map_mat_entry(handle, type, acpi_id); in acpi_get_phys_id() 239 int acpi_get_cpuid(acpi_handle handle, int type, u32 acpi_id) in acpi_get_cpuid() argument 243 phys_id = acpi_get_phys_id(handle, type, acpi_id); in acpi_get_cpuid() 291 static int parse_mat_ioapic_entry(acpi_handle handle, u32 gsi_base, in parse_mat_ioapic_entry() argument 299 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in parse_mat_ioapic_entry() 330 int acpi_get_ioapic_id(acpi_handle handle, u32 gsi_base, u64 *phys_addr) in acpi_get_ioapic_id() argument 334 apic_id = parse_mat_ioapic_entry(handle, gsi_base, phys_addr); in acpi_get_ioapic_id()
|
D | device_pm.c | 91 acpi_handle handle = device->handle; in acpi_device_get_power() local 95 status = acpi_evaluate_integer(handle, "_PSC", NULL, &psc); in acpi_device_get_power() 139 status = acpi_evaluate_object(adev->handle, method, NULL, NULL); in acpi_dev_pm_explicit_set() 237 int acpi_bus_set_power(acpi_handle handle, int state) in acpi_bus_set_power() argument 242 result = acpi_bus_get_device(handle, &device); in acpi_bus_set_power() 348 int acpi_bus_update_power(acpi_handle handle, int *state_p) in acpi_bus_update_power() argument 353 result = acpi_bus_get_device(handle, &device); in acpi_bus_update_power() 358 bool acpi_bus_power_manageable(acpi_handle handle) in acpi_bus_power_manageable() argument 363 result = acpi_bus_get_device(handle, &device); in acpi_bus_power_manageable() 371 static void acpi_pm_notify_handler(acpi_handle handle, u32 val, void *not_used) in acpi_pm_notify_handler() argument [all …]
|
/linux-4.1.27/fs/jbd/ |
D | transaction.c | 84 static int start_this_handle(journal_t *journal, handle_t *handle) in start_this_handle() argument 88 int nblocks = handle->h_buffer_credits; in start_this_handle() 110 jbd_debug(3, "New handle %p going live.\n", handle); in start_this_handle() 177 jbd_debug(2, "Handle %p starting new commit...\n", handle); in start_this_handle() 214 jbd_debug(2, "Handle %p waiting for checkpoint...\n", handle); in start_this_handle() 223 handle->h_transaction = transaction; in start_this_handle() 228 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle() 233 lock_map_acquire(&handle->h_lockdep_map); in start_this_handle() 245 handle_t *handle = jbd_alloc_handle(GFP_NOFS); in new_handle() local 246 if (!handle) in new_handle() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
D | hcp_if.c | 222 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_eq() 226 eq_handle->handle = outs[0]; in hipz_h_alloc_resource_eq() 242 adapter_handle.handle, /* r4 */ in hipz_h_reset_event() 243 eq_handle.handle, /* r5 */ in hipz_h_reset_event() 257 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_cq() 259 param->eq_handle.handle, /* r6 */ in hipz_h_alloc_resource_cq() 263 cq->ipz_cq_handle.handle = outs[0]; in hipz_h_alloc_resource_cq() 274 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_cq() 275 cq->ipz_cq_handle.handle, /* r5 */ in hipz_h_alloc_resource_cq() 331 adapter_handle.handle, /* r4 */ in hipz_h_alloc_resource_qp() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_context.c | 36 drm_context_t handle; member 126 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush() 128 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush() 130 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush() 172 request->handle = NULL; in drm_legacy_getsareactx() 175 request->handle = in drm_legacy_getsareactx() 183 if (request->handle == NULL) in drm_legacy_getsareactx() 211 && r_list->user_token == (unsigned long) request->handle) in drm_legacy_setsareactx() 311 ctx.handle = i; in drm_legacy_resctx() 338 ctx->handle = drm_legacy_ctxbitmap_next(dev); in drm_legacy_addctx() [all …]
|
D | drm_memory.c | 97 void drm_free_agp(struct agp_memory * handle, int pages) in drm_free_agp() argument 99 agp_free_memory(handle); in drm_free_agp() 103 int drm_bind_agp(struct agp_memory * handle, unsigned int start) in drm_bind_agp() argument 105 return agp_bind_memory(handle, start); in drm_bind_agp() 109 int drm_unbind_agp(struct agp_memory * handle) in drm_unbind_agp() argument 111 return agp_unbind_memory(handle); in drm_unbind_agp() 126 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap() 128 map->handle = ioremap(map->offset, map->size); in drm_legacy_ioremap() 135 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap_wc() 137 map->handle = ioremap_wc(map->offset, map->size); in drm_legacy_ioremap_wc() [all …]
|
D | drm_ioc32.c | 188 u32 handle; /**< User-space: "Handle" to pass to mmap() */ member 199 void *handle; in compat_drm_getmap() local 218 || __get_user(handle, &map->handle) in compat_drm_getmap() 222 m32.handle = (unsigned long)handle; in compat_drm_getmap() 236 void *handle; in compat_drm_addmap() local 256 || __get_user(handle, &map->handle)) in compat_drm_addmap() 259 m32.handle = (unsigned long)handle; in compat_drm_addmap() 260 if (m32.handle != (unsigned long)handle) in compat_drm_addmap() 263 handle, m32.type, m32.offset); in compat_drm_addmap() 276 u32 handle; in compat_drm_rmmap() local [all …]
|
D | drm_prime.c | 66 uint32_t handle; member 75 struct dma_buf *dma_buf, uint32_t handle) in drm_prime_add_buf_handle() argument 85 member->handle = handle; in drm_prime_add_buf_handle() 91 uint32_t handle) in drm_prime_lookup_buf_by_handle() argument 96 if (member->handle == handle) in drm_prime_lookup_buf_by_handle() 105 uint32_t *handle) in drm_prime_lookup_buf_handle() argument 111 *handle = member->handle; in drm_prime_lookup_buf_handle() 403 struct drm_file *file_priv, uint32_t handle, in drm_gem_prime_handle_to_fd() argument 412 obj = drm_gem_object_lookup(dev, file_priv, handle); in drm_gem_prime_handle_to_fd() 418 dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); in drm_gem_prime_handle_to_fd() [all …]
|
/linux-4.1.27/drivers/platform/x86/ |
D | toshiba_bluetooth.c | 65 static int toshiba_bluetooth_present(acpi_handle handle) in toshiba_bluetooth_present() argument 75 result = acpi_evaluate_integer(handle, "_STA", NULL, &bt_present); in toshiba_bluetooth_present() 87 static int toshiba_bluetooth_status(acpi_handle handle) in toshiba_bluetooth_status() argument 92 result = acpi_evaluate_integer(handle, "BTST", NULL, &status); in toshiba_bluetooth_status() 103 static int toshiba_bluetooth_enable(acpi_handle handle) in toshiba_bluetooth_enable() argument 116 status = toshiba_bluetooth_status(handle); in toshiba_bluetooth_enable() 134 result = acpi_evaluate_object(handle, "AUSB", NULL, NULL); in toshiba_bluetooth_enable() 140 result = acpi_evaluate_object(handle, "BTPO", NULL, NULL); in toshiba_bluetooth_enable() 149 static int toshiba_bluetooth_disable(acpi_handle handle) in toshiba_bluetooth_disable() argument 153 result = acpi_evaluate_object(handle, "BTPF", NULL, NULL); in toshiba_bluetooth_disable() [all …]
|
D | intel_menlow.c | 67 acpi_handle handle = device->handle; in memory_get_max_bandwidth() local 77 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, in memory_get_max_bandwidth() 93 acpi_handle handle = device->handle; in memory_get_cur_bandwidth() local 103 status = acpi_evaluate_integer(handle, MEMORY_GET_BANDWIDTH, in memory_get_cur_bandwidth() 116 acpi_handle handle = device->handle; in memory_set_cur_bandwidth() local 135 acpi_evaluate_integer(handle, MEMORY_SET_BANDWIDTH, &arg_list, in memory_set_cur_bandwidth() 162 if (!acpi_has_method(device->handle, MEMORY_GET_BANDWIDTH)) in intel_menlow_memory_add() 165 if (!acpi_has_method(device->handle, MEMORY_SET_BANDWIDTH)) in intel_menlow_memory_add() 239 acpi_handle handle; member 252 static int sensor_get_auxtrip(acpi_handle handle, int index, in sensor_get_auxtrip() argument [all …]
|
D | ideapad-laptop.c | 102 static int read_method_int(acpi_handle handle, const char *method, int *val) in read_method_int() argument 107 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result); in read_method_int() 117 static int method_vpcr(acpi_handle handle, int cmd, int *ret) in method_vpcr() argument 129 status = acpi_evaluate_integer(handle, "VPCR", ¶ms, &result); in method_vpcr() 140 static int method_vpcw(acpi_handle handle, int cmd, int data) in method_vpcw() argument 153 status = acpi_evaluate_object(handle, "VPCW", ¶ms, NULL); in method_vpcw() 159 static int read_ec_data(acpi_handle handle, int cmd, unsigned long *data) in read_ec_data() argument 164 if (method_vpcw(handle, 1, cmd)) in read_ec_data() 170 if (method_vpcr(handle, 1, &val)) in read_ec_data() 173 if (method_vpcr(handle, 0, &val)) in read_ec_data() [all …]
|
D | classmate-laptop.c | 86 static acpi_status cmpc_start_accel_v4(acpi_handle handle) in cmpc_start_accel_v4() argument 102 status = acpi_evaluate_object(handle, "ACMD", &input, NULL); in cmpc_start_accel_v4() 106 static acpi_status cmpc_stop_accel_v4(acpi_handle handle) in cmpc_stop_accel_v4() argument 122 status = acpi_evaluate_object(handle, "ACMD", &input, NULL); in cmpc_stop_accel_v4() 126 static acpi_status cmpc_accel_set_sensitivity_v4(acpi_handle handle, int val) in cmpc_accel_set_sensitivity_v4() argument 141 return acpi_evaluate_object(handle, "ACMD", &input, NULL); in cmpc_accel_set_sensitivity_v4() 144 static acpi_status cmpc_accel_set_g_select_v4(acpi_handle handle, int val) in cmpc_accel_set_g_select_v4() argument 159 return acpi_evaluate_object(handle, "ACMD", &input, NULL); in cmpc_accel_set_g_select_v4() 162 static acpi_status cmpc_get_accel_v4(acpi_handle handle, in cmpc_get_accel_v4() argument 183 status = acpi_evaluate_object(handle, "ACMD", &input, &output); in cmpc_get_accel_v4() [all …]
|
D | toshiba_haps.c | 39 static int toshiba_haps_reset_protection(acpi_handle handle) in toshiba_haps_reset_protection() argument 43 status = acpi_evaluate_object(handle, "RSSS", NULL, NULL); in toshiba_haps_reset_protection() 52 static int toshiba_haps_protection_level(acpi_handle handle, int level) in toshiba_haps_protection_level() argument 56 status = acpi_execute_simple_method(handle, "PTLV", level); in toshiba_haps_protection_level() 90 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level); in protection_level_store() 110 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in reset_protection_store() 154 static int toshiba_haps_available(acpi_handle handle) in toshiba_haps_available() argument 163 status = acpi_evaluate_integer(handle, "_STA", NULL, in toshiba_haps_available() 181 if (!toshiba_haps_available(acpi_dev->handle)) in toshiba_haps_add() 196 ret = toshiba_haps_protection_level(acpi_dev->handle, 2); in toshiba_haps_add() [all …]
|
D | asus-laptop.c | 289 acpi_handle handle; /* the handle of the hotk device */ member 375 static int write_acpi_int_ret(acpi_handle handle, const char *method, int val, in write_acpi_int_ret() argument 382 if (!handle) in write_acpi_int_ret() 390 status = acpi_evaluate_object(handle, (char *)method, ¶ms, output); in write_acpi_int_ret() 397 static int write_acpi_int(acpi_handle handle, const char *method, int val) in write_acpi_int() argument 399 return write_acpi_int_ret(handle, method, val, NULL); in write_acpi_int() 402 static int acpi_check_handle(acpi_handle handle, const char *method, in acpi_check_handle() argument 411 status = acpi_get_handle(handle, (char *)method, in acpi_check_handle() 416 status = acpi_get_handle(handle, (char *)method, in acpi_check_handle() 431 !acpi_check_handle(asus->handle, METHOD_PEGA_ENABLE, NULL) && in asus_check_pega_lucid() [all …]
|
D | wmi.c | 66 acpi_handle handle; member 253 acpi_handle handle; in wmi_method_enable() local 256 handle = wblock->handle; in wmi_method_enable() 259 status = acpi_execute_simple_method(handle, method, enable); in wmi_method_enable() 285 acpi_handle handle; in wmi_evaluate_method() local 295 handle = wblock->handle; in wmi_evaluate_method() 324 status = acpi_evaluate_object(handle, method, &input, out); in wmi_evaluate_method() 343 acpi_handle handle; in wmi_query_block() local 357 handle = wblock->handle; in wmi_query_block() 383 if (acpi_has_method(handle, wc_method)) in wmi_query_block() [all …]
|
D | sony-laptop.c | 142 unsigned int handle); 144 unsigned int handle); 147 unsigned int handle); 154 unsigned int handle); 158 unsigned int handle); 181 unsigned int handle); 196 unsigned int handle); 738 static union acpi_object *__call_snc_method(acpi_handle handle, char *method, in __call_snc_method() argument 752 status = acpi_evaluate_object(handle, method, ¶ms, &output); in __call_snc_method() 757 status = acpi_evaluate_object(handle, method, NULL, &output); in __call_snc_method() [all …]
|
D | eeepc-laptop.c | 159 acpi_handle handle; /* the handle of the acpi device */ member 189 static int write_acpi_int(acpi_handle handle, const char *method, int val) in write_acpi_int() argument 193 status = acpi_execute_simple_method(handle, (char *)method, val); in write_acpi_int() 198 static int read_acpi_int(acpi_handle handle, const char *method, int *val) in read_acpi_int() argument 203 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result); in read_acpi_int() 222 if (write_acpi_int(eeepc->handle, method, value)) in set_acpi() 237 if (read_acpi_int(eeepc->handle, method, &value)) in get_acpi() 243 acpi_handle *handle) in acpi_setter_handle() argument 253 status = acpi_get_handle(eeepc->handle, (char *)method, in acpi_setter_handle() 254 handle); in acpi_setter_handle() [all …]
|
/linux-4.1.27/arch/arm/include/asm/xen/ |
D | page-coherent.h | 11 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, 15 dma_addr_t handle, size_t size, enum dma_data_direction dir); 18 dma_addr_t handle, size_t size, enum dma_data_direction dir); 49 static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in xen_dma_unmap_page() argument 53 unsigned long pfn = PFN_DOWN(handle); in xen_dma_unmap_page() 60 __generic_dma_ops(hwdev)->unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page() 62 __xen_dma_unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page() 66 dma_addr_t handle, size_t size, enum dma_data_direction dir) in xen_dma_sync_single_for_cpu() argument 68 unsigned long pfn = PFN_DOWN(handle); in xen_dma_sync_single_for_cpu() 71 __generic_dma_ops(hwdev)->sync_single_for_cpu(hwdev, handle, size, dir); in xen_dma_sync_single_for_cpu() [all …]
|
/linux-4.1.27/net/rfkill/ |
D | input.c | 196 static void rfkill_event(struct input_handle *handle, unsigned int type, in rfkill_event() argument 224 struct input_handle *handle; in rfkill_connect() local 227 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in rfkill_connect() 228 if (!handle) in rfkill_connect() 231 handle->dev = dev; in rfkill_connect() 232 handle->handler = handler; in rfkill_connect() 233 handle->name = "rfkill"; in rfkill_connect() 236 error = input_register_handle(handle); in rfkill_connect() 240 error = input_open_device(handle); in rfkill_connect() 247 input_unregister_handle(handle); in rfkill_connect() [all …]
|
/linux-4.1.27/arch/avr32/mm/ |
D | dma-coherent.c | 41 dma_addr_t *handle, gfp_t gfp) in __dma_alloc() argument 72 *handle = page_to_bus(page); in __dma_alloc() 88 struct page *page, dma_addr_t handle) in __dma_free() argument 97 dma_addr_t *handle, gfp_t gfp) in dma_alloc_coherent() argument 102 page = __dma_alloc(dev, size, handle, gfp); in dma_alloc_coherent() 111 void *cpu_addr, dma_addr_t handle) in dma_free_coherent() argument 117 cpu_addr, (unsigned long)handle, (unsigned)size); in dma_free_coherent() 120 __dma_free(dev, size, page, handle); in dma_free_coherent() 125 dma_addr_t *handle, gfp_t gfp) in dma_alloc_writecombine() argument 130 page = __dma_alloc(dev, size, handle, gfp); in dma_alloc_writecombine() [all …]
|
/linux-4.1.27/drivers/xen/ |
D | xen-acpi-cpuhotplug.c | 59 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable() 68 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, in xen_acpi_processor_enable() 103 pr->handle = device->handle; in xen_acpi_processor_add() 134 static int is_processor_present(acpi_handle handle) in is_processor_present() argument 140 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in is_processor_present() 155 static int xen_apic_id(acpi_handle handle) in xen_apic_id() argument 162 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in xen_apic_id() 196 apic_id = xen_apic_id(pr->handle); in xen_hotadd_cpu() 203 pxm = xen_acpi_get_pxm(pr->handle); in xen_hotadd_cpu() 225 if (!is_processor_present(pr->handle)) in xen_acpi_cpu_hotadd() [all …]
|
D | xen-acpi-memhotplug.c | 78 pxm = xen_acpi_get_pxm(mem_device->device->handle); in xen_acpi_memory_enable_device() 149 status = acpi_walk_resources(mem_device->device->handle, in acpi_memory_get_device_resources() 162 static int acpi_memory_get_device(acpi_handle handle, in acpi_memory_get_device() argument 170 acpi_bus_get_device(handle, &device); in acpi_memory_get_device() 178 result = acpi_bus_scan(handle); in acpi_memory_get_device() 185 acpi_bus_get_device(handle, &device); in acpi_memory_get_device() 210 if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, in acpi_memory_check_device() 232 static void acpi_memory_device_notify(acpi_handle handle, u32 event, void *data) in acpi_memory_device_notify() argument 248 if (acpi_memory_get_device(handle, &mem_device)) { in acpi_memory_device_notify() 261 if (acpi_bus_get_device(handle, &device)) { in acpi_memory_device_notify() [all …]
|
D | xen-acpi-pad.c | 57 static int acpi_pad_pur(acpi_handle handle) in acpi_pad_pur() argument 63 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_PUR", NULL, &buffer))) in acpi_pad_pur() 80 static void acpi_pad_handle_notify(acpi_handle handle) in acpi_pad_handle_notify() argument 90 idle_nums = acpi_pad_pur(handle); in acpi_pad_handle_notify() 99 acpi_evaluate_ost(handle, ACPI_PROCESSOR_AGGREGATOR_NOTIFY, in acpi_pad_handle_notify() 104 static void acpi_pad_notify(acpi_handle handle, u32 event, in acpi_pad_notify() argument 109 acpi_pad_handle_notify(handle); in acpi_pad_notify() 124 status = acpi_install_notify_handler(device->handle, in acpi_pad_add() 138 acpi_remove_notify_handler(device->handle, in acpi_pad_remove()
|
D | pci.c | 56 acpi_handle handle; in xen_add_device() local 70 handle = ACPI_HANDLE(&pci_dev->dev); in xen_add_device() 72 if (!handle && pci_dev->is_virtfn) in xen_add_device() 73 handle = ACPI_HANDLE(physfn->bus->bridge); in xen_add_device() 75 if (!handle) { in xen_add_device() 82 handle = acpi_pci_get_bridge_handle(pbus); in xen_add_device() 83 if (handle) in xen_add_device() 87 if (handle) { in xen_add_device() 93 status = acpi_evaluate_integer(handle, "_PXM", in xen_add_device() 100 status = acpi_get_parent(handle, &handle); in xen_add_device()
|
/linux-4.1.27/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 51 libusb_device_handle *handle; member 67 state->handle = NULL; in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() 108 if (libusb_claim_interface(state->handle, 0)) { in test_init() 109 ret = libusb_detach_kernel_driver(state->handle, 0); in test_init() 116 ret = libusb_claim_interface(state->handle, 0); in test_init() 128 libusb_attach_kernel_driver(state->handle, 0); in test_init() 131 libusb_close(state->handle); in test_init() 147 libusb_release_interface(state->handle, 0); in test_exit() 149 libusb_attach_kernel_driver(state->handle, 0); in test_exit() [all …]
|
/linux-4.1.27/include/linux/ |
D | zpool.h | 17 int (*evict)(struct zpool *pool, unsigned long handle); 47 unsigned long *handle); 49 void zpool_free(struct zpool *pool, unsigned long handle); 54 void *zpool_map_handle(struct zpool *pool, unsigned long handle, 57 void zpool_unmap_handle(struct zpool *pool, unsigned long handle); 88 unsigned long *handle); 89 void (*free)(void *pool, unsigned long handle); 94 void *(*map)(void *pool, unsigned long handle, 96 void (*unmap)(void *pool, unsigned long handle); 105 int zpool_evict(void *pool, unsigned long handle);
|
D | acpi.h | 53 return adev ? adev->handle : NULL; in acpi_device_handle() 163 int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu); 168 int acpi_get_ioapic_id(acpi_handle handle, u32 gsi_base, u64 *phys_addr); 171 int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base); 172 int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base); 173 int acpi_ioapic_registered(acpi_handle handle, u32 gsi_base); 249 extern long acpi_is_video_device(acpi_handle handle); 262 static inline long acpi_is_video_device(acpi_handle handle) in acpi_is_video_device() argument 292 int acpi_get_node(acpi_handle handle); 294 static inline int acpi_get_node(acpi_handle handle) in acpi_get_node() argument [all …]
|
D | zbud.h | 9 int (*evict)(struct zbud_pool *pool, unsigned long handle); 15 unsigned long *handle); 16 void zbud_free(struct zbud_pool *pool, unsigned long handle); 18 void *zbud_map(struct zbud_pool *pool, unsigned long handle); 19 void zbud_unmap(struct zbud_pool *pool, unsigned long handle);
|
/linux-4.1.27/tools/usb/ffs-aio-example/multibuff/host_app/ |
D | test.c | 51 libusb_device_handle *handle; member 67 state->handle = NULL; in test_init() 102 ret = libusb_open(state->found, &state->handle); in test_init() 108 if (libusb_claim_interface(state->handle, 0)) { in test_init() 109 ret = libusb_detach_kernel_driver(state->handle, 0); in test_init() 116 ret = libusb_claim_interface(state->handle, 0); in test_init() 128 libusb_attach_kernel_driver(state->handle, 0); in test_init() 131 libusb_close(state->handle); in test_init() 147 libusb_release_interface(state->handle, 0); in test_exit() 149 libusb_attach_kernel_driver(state->handle, 0); in test_exit() [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | mpic_timer.h | 33 void mpic_start_timer(struct mpic_timer *handle); 34 void mpic_stop_timer(struct mpic_timer *handle); 35 void mpic_get_remain_time(struct mpic_timer *handle, struct timeval *time); 36 void mpic_free_timer(struct mpic_timer *handle); 40 void mpic_start_timer(struct mpic_timer *handle) { } in mpic_start_timer() argument 41 void mpic_stop_timer(struct mpic_timer *handle) { } in mpic_stop_timer() argument 42 void mpic_get_remain_time(struct mpic_timer *handle, struct timeval *time) { } in mpic_get_remain_time() argument 43 void mpic_free_timer(struct mpic_timer *handle) { } in mpic_free_timer() argument
|
D | fsl_hcalls.h | 121 static inline unsigned int fh_partition_get_dtprop(int handle, in fh_partition_get_dtprop() argument 138 r3 = handle; in fh_partition_get_dtprop() 175 static inline unsigned int fh_partition_set_dtprop(int handle, in fh_partition_set_dtprop() argument 192 r3 = handle; in fh_partition_set_dtprop() 534 static inline unsigned int fh_get_core_state(unsigned int handle, in fh_get_core_state() argument 542 r3 = handle; in fh_get_core_state() 565 static inline unsigned int fh_enter_nap(unsigned int handle, unsigned int vcpu) in fh_enter_nap() argument 572 r3 = handle; in fh_enter_nap() 590 static inline unsigned int fh_exit_nap(unsigned int handle, unsigned int vcpu) in fh_exit_nap() argument 597 r3 = handle; in fh_exit_nap() [all …]
|
D | epapr_hcalls.h | 282 static inline unsigned int ev_byte_channel_send(unsigned int handle, in ev_byte_channel_send() argument 295 r3 = handle; in ev_byte_channel_send() 325 static inline unsigned int ev_byte_channel_receive(unsigned int handle, in ev_byte_channel_receive() argument 338 r3 = handle; in ev_byte_channel_receive() 368 static inline unsigned int ev_byte_channel_poll(unsigned int handle, in ev_byte_channel_poll() argument 377 r3 = handle; in ev_byte_channel_poll() 402 static inline unsigned int ev_int_iack(unsigned int handle, in ev_int_iack() argument 410 r3 = handle; in ev_int_iack() 428 static inline unsigned int ev_doorbell_send(unsigned int handle) in ev_doorbell_send() argument 434 r3 = handle; in ev_doorbell_send()
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
D | mpt2sas_scsih.c | 211 u16 handle; member 401 _scsih_get_sas_address(struct MPT2SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument 409 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address() 415 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_get_sas_address() 432 "failure at %s:%d/%s()!\n", ioc->name, handle, ioc_status, in _scsih_get_sas_address() 565 _scsih_sas_device_find_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_device_find_by_handle() argument 570 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle() 574 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle() 620 sas_device->handle, (unsigned long long)sas_device->sas_address)); in _scsih_sas_device_add() 626 if (!mpt2sas_transport_port_add(ioc, sas_device->handle, in _scsih_sas_device_add() [all …]
|
/linux-4.1.27/drivers/macintosh/ |
D | mac_hid.c | 70 static bool mac_hid_emumouse_filter(struct input_handle *handle, in mac_hid_emumouse_filter() argument 96 struct input_handle *handle; in mac_hid_emumouse_connect() local 103 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in mac_hid_emumouse_connect() 104 if (!handle) in mac_hid_emumouse_connect() 107 handle->dev = dev; in mac_hid_emumouse_connect() 108 handle->handler = handler; in mac_hid_emumouse_connect() 109 handle->name = "mac-button-emul"; in mac_hid_emumouse_connect() 111 error = input_register_handle(handle); in mac_hid_emumouse_connect() 119 error = input_open_device(handle); in mac_hid_emumouse_connect() 130 input_unregister_handle(handle); in mac_hid_emumouse_connect() [all …]
|
/linux-4.1.27/mm/ |
D | zbud.c | 124 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict() argument 126 return zpool_evict(pool, handle); in zbud_zpool_evict() 145 unsigned long *handle) in zbud_zpool_malloc() argument 147 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc() 149 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free() argument 151 zbud_free(pool, handle); in zbud_zpool_free() 173 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map() argument 176 return zbud_map(pool, handle); in zbud_zpool_map() 178 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap() argument 180 zbud_unmap(pool, handle); in zbud_zpool_unmap() [all …]
|
D | zsmalloc.c | 245 unsigned long handle; member 302 static void free_handle(struct zs_pool *pool, unsigned long handle) in free_handle() argument 304 kmem_cache_free(pool->handle_cachep, (void *)handle); in free_handle() 307 static void record_obj(unsigned long handle, unsigned long obj) in record_obj() argument 314 WRITE_ONCE(*(unsigned long *)handle, obj); in record_obj() 332 unsigned long *handle) in zs_zpool_malloc() argument 334 *handle = zs_malloc(pool, size); in zs_zpool_malloc() 335 return *handle ? 0 : -1; in zs_zpool_malloc() 337 static void zs_zpool_free(void *pool, unsigned long handle) in zs_zpool_free() argument 339 zs_free(pool, handle); in zs_zpool_free() [all …]
|
D | zpool.c | 84 int zpool_evict(void *pool, unsigned long handle) in zpool_evict() argument 94 return zpool->ops->evict(zpool, handle); in zpool_evict() 247 unsigned long *handle) in zpool_malloc() argument 249 return zpool->driver->malloc(zpool->pool, size, gfp, handle); in zpool_malloc() 266 void zpool_free(struct zpool *zpool, unsigned long handle) in zpool_free() argument 268 zpool->driver->free(zpool->pool, handle); in zpool_free() 316 void *zpool_map_handle(struct zpool *zpool, unsigned long handle, in zpool_map_handle() argument 319 return zpool->driver->map(zpool->pool, handle, mapmode); in zpool_map_handle() 332 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle) in zpool_unmap_handle() argument 334 zpool->driver->unmap(zpool->pool, handle); in zpool_unmap_handle()
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 73 static int _scsih_add_device(struct MPT3SAS_ADAPTER *ioc, u16 handle, 226 u16 handle; member 390 _scsih_get_sas_address(struct MPT3SAS_ADAPTER *ioc, u16 handle, in _scsih_get_sas_address() argument 399 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address() 405 MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle))) { in _scsih_get_sas_address() 424 ioc->name, handle, ioc_status, in _scsih_get_sas_address() 557 _scsih_sas_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_sas_device_find_by_handle() argument 562 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle() 566 if (sas_device->handle == handle) in _scsih_sas_device_find_by_handle() 603 _scsih_device_remove_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle) in _scsih_device_remove_by_handle() argument [all …]
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | perf_event_intel_bts.c | 32 struct perf_output_handle handle; member 182 if (local_read(&buf->data_size) >= bts->handle.size || in bts_buffer_is_full() 183 bts->handle.size - local_read(&buf->data_size) < BTS_RECORD_SIZE) in bts_buffer_is_full() 193 struct bts_buffer *buf = perf_get_aux(&bts->handle); in bts_update() 222 struct bts_buffer *buf = perf_get_aux(&bts->handle); in __bts_event_start() 289 if (bts->handle.event && bts->started) in intel_bts_enable_local() 290 __bts_event_start(bts->handle.event); in intel_bts_enable_local() 297 if (bts->handle.event) in intel_bts_disable_local() 298 __bts_event_stop(bts->handle.event); in intel_bts_disable_local() 302 bts_buffer_reset(struct bts_buffer *buf, struct perf_output_handle *handle) in bts_buffer_reset() argument [all …]
|
D | perf_event_intel_pt.c | 467 struct pt_buffer *buf = perf_get_aux(&pt->handle); in pt_update_head() 513 struct pt_buffer *buf = perf_get_aux(&pt->handle); in pt_handle_status() 615 struct perf_output_handle *handle) in pt_buffer_reset_markers() argument 625 if (buf->output_off + handle->size + 1 < in pt_buffer_reset_markers() 640 npages = handle->size >> PAGE_SHIFT; in pt_buffer_reset_markers() 643 if (!offset_in_page(head + handle->size + 1)) in pt_buffer_reset_markers() 650 wakeup = handle->wakeup >> PAGE_SHIFT; in pt_buffer_reset_markers() 855 if (local_read(&buf->data_size) >= pt->handle.size) in pt_buffer_is_full() 868 struct perf_event *event = pt->handle.event; in intel_pt_interrupt() 883 buf = perf_get_aux(&pt->handle); in intel_pt_interrupt() [all …]
|
/linux-4.1.27/fs/ocfs2/ |
D | namei.c | 75 handle_t *handle, 86 handle_t *handle, 95 handle_t *handle, 242 handle_t *handle = NULL; in ocfs2_mknod() local 362 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod() 365 if (IS_ERR(handle)) { in ocfs2_mknod() 366 status = PTR_ERR(handle); in ocfs2_mknod() 367 handle = NULL; in ocfs2_mknod() 383 &new_fe_bh, parent_fe_bh, handle, in ocfs2_mknod() 391 status = ocfs2_fill_new_dir(osb, handle, dir, inode, in ocfs2_mknod() [all …]
|
D | alloc.c | 529 static inline int ocfs2_et_root_journal_access(handle_t *handle, in ocfs2_et_root_journal_access() argument 533 return et->et_root_journal_access(handle, et->et_ci, et->et_root_bh, in ocfs2_et_root_journal_access() 571 static void ocfs2_adjust_rightmost_records(handle_t *handle, 726 int ocfs2_path_bh_journal_access(handle_t *handle, in ocfs2_path_bh_journal_access() argument 739 return access(handle, ci, path->p_node[idx].bh, in ocfs2_path_bh_journal_access() 747 handle_t *handle, in ocfs2_journal_access_path() argument 756 ret = ocfs2_path_bh_journal_access(handle, ci, path, i); in ocfs2_journal_access_path() 997 static int ocfs2_create_new_meta_bhs(handle_t *handle, in ocfs2_create_new_meta_bhs() argument 1013 status = ocfs2_claim_metadata(handle, in ocfs2_create_new_meta_bhs() 1034 status = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_create_new_meta_bhs() [all …]
|
D | journal.h | 259 handle_t *handle); 260 int ocfs2_extend_trans(handle_t *handle, int nblocks); 261 int ocfs2_allocate_extend_trans(handle_t *handle, 290 int ocfs2_journal_access_di(handle_t *handle, struct ocfs2_caching_info *ci, 293 int ocfs2_journal_access_eb(handle_t *handle, struct ocfs2_caching_info *ci, 296 int ocfs2_journal_access_rb(handle_t *handle, struct ocfs2_caching_info *ci, 299 int ocfs2_journal_access_gd(handle_t *handle, struct ocfs2_caching_info *ci, 302 int ocfs2_journal_access_xb(handle_t *handle, struct ocfs2_caching_info *ci, 305 int ocfs2_journal_access_dq(handle_t *handle, struct ocfs2_caching_info *ci, 308 int ocfs2_journal_access_db(handle_t *handle, struct ocfs2_caching_info *ci, [all …]
|
D | file.c | 264 handle_t *handle; in ocfs2_update_inode_atime() local 267 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime() 268 if (IS_ERR(handle)) { in ocfs2_update_inode_atime() 269 ret = PTR_ERR(handle); in ocfs2_update_inode_atime() 274 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime() 289 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_update_inode_atime() 290 ocfs2_journal_dirty(handle, bh); in ocfs2_update_inode_atime() 293 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_update_inode_atime() 298 int ocfs2_set_inode_size(handle_t *handle, in ocfs2_set_inode_size() argument 309 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_set_inode_size() [all …]
|
D | acl.c | 169 handle_t *handle, umode_t new_mode) in ocfs2_acl_set_mode() argument 183 if (handle == NULL) { in ocfs2_acl_set_mode() 184 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_acl_set_mode() 186 if (IS_ERR(handle)) { in ocfs2_acl_set_mode() 187 ret = PTR_ERR(handle); in ocfs2_acl_set_mode() 196 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_acl_set_mode() 208 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_acl_set_mode() 210 ocfs2_journal_dirty(handle, di_bh); in ocfs2_acl_set_mode() 214 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_acl_set_mode() 224 int ocfs2_set_acl(handle_t *handle, in ocfs2_set_acl() argument [all …]
|
D | dir.c | 76 handle_t *handle, 170 static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, in ocfs2_dx_dir_link_trailer() argument 178 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer() 190 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer() 1116 int ocfs2_update_entry(struct inode *dir, handle_t *handle, in ocfs2_update_entry() argument 1134 ret = access(handle, INODE_CACHE(dir), de_bh, in ocfs2_update_entry() 1144 ocfs2_journal_dirty(handle, de_bh); in ocfs2_update_entry() 1154 static int __ocfs2_delete_entry(handle_t *handle, struct inode *dir, in __ocfs2_delete_entry() argument 1176 status = access(handle, INODE_CACHE(dir), bh, in __ocfs2_delete_entry() 1188 ocfs2_journal_dirty(handle, bh); in __ocfs2_delete_entry() [all …]
|
D | localalloc.c | 61 handle_t *handle, 72 handle_t *handle, 381 handle_t *handle; in ocfs2_shutdown_local_alloc() local 427 handle = ocfs2_start_trans(osb, OCFS2_WINDOW_MOVE_CREDITS); in ocfs2_shutdown_local_alloc() 428 if (IS_ERR(handle)) { in ocfs2_shutdown_local_alloc() 429 mlog_errno(PTR_ERR(handle)); in ocfs2_shutdown_local_alloc() 430 handle = NULL; in ocfs2_shutdown_local_alloc() 444 status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode), in ocfs2_shutdown_local_alloc() 452 ocfs2_journal_dirty(handle, bh); in ocfs2_shutdown_local_alloc() 458 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc() [all …]
|
D | suballoc.h | 90 handle_t *handle, 98 int ocfs2_block_group_set_bits(handle_t *handle, 105 int ocfs2_claim_metadata(handle_t *handle, 112 int ocfs2_claim_new_inode(handle_t *handle, 119 int ocfs2_claim_clusters(handle_t *handle, 128 int __ocfs2_claim_clusters(handle_t *handle, 135 int ocfs2_free_suballoc_bits(handle_t *handle, 141 int ocfs2_free_dinode(handle_t *handle, 145 int ocfs2_free_clusters(handle_t *handle, 150 int ocfs2_release_clusters(handle_t *handle, [all …]
|
D | refcounttree.c | 68 int (*cow_duplicate_clusters)(handle_t *handle, 563 handle_t *handle = NULL; in ocfs2_create_refcount_tree() local 586 handle = ocfs2_start_trans(osb, OCFS2_REFCOUNT_TREE_CREATE_CREDITS); in ocfs2_create_refcount_tree() 587 if (IS_ERR(handle)) { in ocfs2_create_refcount_tree() 588 ret = PTR_ERR(handle); in ocfs2_create_refcount_tree() 593 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree() 600 ret = ocfs2_claim_metadata(handle, meta_ac, 1, &suballoc_loc, in ocfs2_create_refcount_tree() 623 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree() 646 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree() 656 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree() [all …]
|
D | export.c | 51 struct ocfs2_inode_handle *handle) in ocfs2_get_dentry() argument 55 u64 blkno = handle->ih_blkno; in ocfs2_get_dentry() 59 trace_ocfs2_get_dentry_begin(sb, handle, (unsigned long long)blkno); in ocfs2_get_dentry() 114 handle->ih_generation); in ocfs2_get_dentry() 127 if (handle->ih_generation != inode->i_generation) { in ocfs2_get_dentry() 130 handle->ih_generation, in ocfs2_get_dentry() 241 struct ocfs2_inode_handle handle; in ocfs2_fh_to_dentry() local 246 handle.ih_blkno = (u64)le32_to_cpu(fid->raw[0]) << 32; in ocfs2_fh_to_dentry() 247 handle.ih_blkno |= (u64)le32_to_cpu(fid->raw[1]); in ocfs2_fh_to_dentry() 248 handle.ih_generation = le32_to_cpu(fid->raw[2]); in ocfs2_fh_to_dentry() [all …]
|
D | suballoc.c | 85 static int ocfs2_block_group_fill(handle_t *handle, 110 handle_t *handle, 116 static int ocfs2_relink_block_group(handle_t *handle, 373 static int ocfs2_block_group_fill(handle_t *handle, in ocfs2_block_group_fill() argument 395 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill() 423 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill() 451 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument 462 status = ocfs2_claim_clusters(handle, ac, in ocfs2_block_group_alloc_contig() 484 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_contig() 496 handle_t *handle, in ocfs2_block_group_claim_bits() argument [all …]
|
D | quota_local.c | 97 handle_t *handle; in ocfs2_modify_bh() local 100 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_modify_bh() 102 if (IS_ERR(handle)) { in ocfs2_modify_bh() 103 status = PTR_ERR(handle); in ocfs2_modify_bh() 107 status = ocfs2_journal_access_dq(handle, INODE_CACHE(inode), bh, in ocfs2_modify_bh() 111 ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 117 ocfs2_journal_dirty(handle, bh); in ocfs2_modify_bh() 119 status = ocfs2_commit_trans(OCFS2_SB(sb), handle); in ocfs2_modify_bh() 468 handle_t *handle; in ocfs2_recover_local_quota_file() local 517 handle = ocfs2_start_trans(OCFS2_SB(sb), in ocfs2_recover_local_quota_file() [all …]
|
D | move_extents.c | 58 static int __ocfs2_move_extent(handle_t *handle, in __ocfs2_move_extent() argument 72 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent() 119 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in __ocfs2_move_extent() 127 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent() 135 ocfs2_journal_dirty(handle, context->et.et_root_bh); in __ocfs2_move_extent() 144 ret = ocfs2_decrease_refcount(inode, handle, in __ocfs2_move_extent() 150 ret = ocfs2_truncate_log_append(osb, handle, in __ocfs2_move_extent() 154 ocfs2_update_inode_fsync_trans(handle, inode, 0); in __ocfs2_move_extent() 231 handle_t *handle; in ocfs2_defrag_extent() local 291 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent() [all …]
|
D | quota_global.c | 224 handle_t *handle = journal_current_handle(); in ocfs2_quota_write() local 227 if (!handle) { in ocfs2_quota_write() 278 err = ocfs2_journal_access_dq(handle, INODE_CACHE(gqinode), bh, in ocfs2_quota_write() 284 ocfs2_journal_dirty(handle, bh); in ocfs2_quota_write() 292 ocfs2_mark_inode_dirty(handle, gqinode, oinfo->dqi_gqi_bh); in ocfs2_quota_write() 593 handle_t *handle; in ocfs2_sync_dquot_helper() local 608 handle = ocfs2_start_trans(osb, OCFS2_QSYNC_CREDITS); in ocfs2_sync_dquot_helper() 609 if (IS_ERR(handle)) { in ocfs2_sync_dquot_helper() 610 status = PTR_ERR(handle); in ocfs2_sync_dquot_helper() 623 ocfs2_commit_trans(osb, handle); in ocfs2_sync_dquot_helper() [all …]
|
D | dir.h | 60 int ocfs2_delete_entry(handle_t *handle, 63 int __ocfs2_add_entry(handle_t *handle, 69 static inline int ocfs2_add_entry(handle_t *handle, in ocfs2_add_entry() argument 75 return __ocfs2_add_entry(handle, d_inode(dentry->d_parent), in ocfs2_add_entry() 79 int ocfs2_update_entry(struct inode *dir, handle_t *handle, 105 handle_t *handle,
|
D | resize.c | 86 static int ocfs2_update_last_group_and_inode(handle_t *handle, in ocfs2_update_last_group_and_inode() argument 106 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode), in ocfs2_update_last_group_and_inode() 132 ocfs2_journal_dirty(handle, group_bh); in ocfs2_update_last_group_and_inode() 135 ret = ocfs2_journal_access_di(handle, INODE_CACHE(bm_inode), bm_bh, in ocfs2_update_last_group_and_inode() 160 ocfs2_journal_dirty(handle, bm_bh); in ocfs2_update_last_group_and_inode() 267 handle_t *handle; in ocfs2_group_extend() local 341 handle = ocfs2_start_trans(osb, OCFS2_GROUP_EXTEND_CREDITS); in ocfs2_group_extend() 342 if (IS_ERR(handle)) { in ocfs2_group_extend() 343 mlog_errno(PTR_ERR(handle)); in ocfs2_group_extend() 349 ret = ocfs2_update_last_group_and_inode(handle, main_bm_inode, in ocfs2_group_extend() [all …]
|
D | alloc.h | 96 int ocfs2_insert_extent(handle_t *handle, 109 int ocfs2_add_clusters_in_btree(handle_t *handle, 119 int ocfs2_split_extent(handle_t *handle, 128 handle_t *handle, u32 cpos, u32 len, u32 phys, 131 int ocfs2_change_extent_flag(handle_t *handle, 137 int ocfs2_remove_extent(handle_t *handle, struct ocfs2_extent_tree *et, 187 handle_t *handle, 229 int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, 273 void ocfs2_map_and_dirty_page(struct inode *inode, handle_t *handle, 310 int ocfs2_path_bh_journal_access(handle_t *handle, [all …]
|
D | xattr.c | 78 handle_t *handle; member 148 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc, 150 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc); 298 static int ocfs2_mv_xattr_buckets(struct inode *inode, handle_t *handle, 428 static int ocfs2_xattr_bucket_journal_access(handle_t *handle, in ocfs2_xattr_bucket_journal_access() argument 435 rc = ocfs2_journal_access(handle, in ocfs2_xattr_bucket_journal_access() 447 static void ocfs2_xattr_bucket_journal_dirty(handle_t *handle, in ocfs2_xattr_bucket_journal_dirty() argument 459 ocfs2_journal_dirty(handle, bucket->bu_bhs[i]); in ocfs2_xattr_bucket_journal_dirty() 719 handle_t *handle = ctxt->handle; in ocfs2_xattr_extend_allocation() local 729 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation() [all …]
|
/linux-4.1.27/drivers/acpi/acpica/ |
D | utxfmutex.c | 53 acpi_ut_get_mutex_object(acpi_handle handle, 74 acpi_ut_get_mutex_object(acpi_handle handle, in acpi_ut_get_mutex_object() argument 84 if (!ret_obj || (!handle && !pathname)) { in acpi_ut_get_mutex_object() 90 mutex_node = handle; in acpi_ut_get_mutex_object() 92 status = acpi_get_handle(handle, pathname, in acpi_ut_get_mutex_object() 136 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) in acpi_acquire_mutex() argument 143 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in acpi_acquire_mutex() 171 acpi_status acpi_release_mutex(acpi_handle handle, acpi_string pathname) in acpi_release_mutex() argument 178 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in acpi_release_mutex()
|
D | nsxfobj.c | 66 acpi_status acpi_get_type(acpi_handle handle, acpi_object_type * ret_type) in acpi_get_type() argument 81 if (handle == ACPI_ROOT_OBJECT) { in acpi_get_type() 93 node = acpi_ns_validate_handle(handle); in acpi_get_type() 120 acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle) in ACPI_EXPORT_SYMBOL() 132 if (handle == ACPI_ROOT_OBJECT) { in ACPI_EXPORT_SYMBOL() 143 node = acpi_ns_validate_handle(handle); in ACPI_EXPORT_SYMBOL()
|
/linux-4.1.27/net/sched/ |
D | cls_u32.c | 49 u32 handle; member 76 u32 handle; member 253 u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument 260 if (ht->handle == handle) in u32_lookup_ht() 267 u32_lookup_key(struct tc_u_hnode *ht, u32 handle) in u32_lookup_key() argument 272 sel = TC_U32_HASH(handle); in u32_lookup_key() 279 if (n->handle == handle) in u32_lookup_key() 286 static unsigned long u32_get(struct tcf_proto *tp, u32 handle) in u32_get() argument 291 if (TC_U32_HTID(handle) == TC_U32_ROOT) in u32_get() 294 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get() [all …]
|
D | cls_route.c | 57 u32 handle; member 200 !(TC_H_MAJ(id^tp->q->handle)))) { in route4_classify() 230 static unsigned long route4_get(struct tcf_proto *tp, u32 handle) in route4_get() argument 240 h1 = to_hash(handle); in route4_get() 244 h2 = from_hash(handle >> 16); in route4_get() 253 if (f->handle == handle) in route4_get() 334 h = f->handle; in route4_delete() 382 u32 handle, struct route4_head *head, in route4_set_parms() argument 400 if (new && handle & 0x8000) in route4_set_parms() 423 if (handle && new) { in route4_set_parms() [all …]
|
D | cls_basic.c | 31 u32 handle; member 59 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument 69 if (f->handle == handle) { in basic_get() 166 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument 184 if (handle && fold->handle != handle) in basic_change() 194 if (handle) { in basic_change() 195 fnew->handle = handle; in basic_change() 197 fnew->handle = fold->handle; in basic_change() 210 fnew->handle = head->hgenerator; in basic_change() 260 t->tcm_handle = f->handle; in basic_dump()
|
D | cls_bpf.c | 42 u32 handle; member 165 static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) in cls_bpf_get() argument 175 if (prog->handle == handle) { in cls_bpf_get() 305 u32 handle; in cls_bpf_grab_new_handle() local 314 handle = 0; in cls_bpf_grab_new_handle() 316 handle = head->hgen; in cls_bpf_grab_new_handle() 319 return handle; in cls_bpf_grab_new_handle() 324 u32 handle, struct nlattr **tca, in cls_bpf_change() argument 347 if (handle && oldprog->handle != handle) { in cls_bpf_change() 353 if (handle == 0) in cls_bpf_change() [all …]
|
D | cls_fw.c | 52 static u32 fw_hash(u32 handle) in fw_hash() argument 54 handle ^= (handle >> 16); in fw_hash() 55 handle ^= (handle >> 8); in fw_hash() 56 return handle % HTSIZE; in fw_hash() 88 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify() 98 static unsigned long fw_get(struct tcf_proto *tp, u32 handle) in fw_get() argument 106 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 108 if (f->id == handle) in fw_get() 238 u32 handle, in fw_change() argument 249 return handle ? -EINVAL : 0; /* Succeed if it is old method. */ in fw_change() [all …]
|
D | cls_cgroup.c | 22 u32 handle; member 65 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get() argument 92 u32 handle, struct nlattr **tca, in cls_cgroup_change() argument 105 if (!head && !handle) in cls_cgroup_change() 108 if (head && handle != head->handle) in cls_cgroup_change() 116 new->handle = handle; in cls_cgroup_change() 186 t->tcm_handle = head->handle; in cls_cgroup_dump()
|
/linux-4.1.27/arch/arm/xen/ |
D | mm.c | 47 static void dma_cache_maint(dma_addr_t handle, unsigned long offset, in dma_cache_maint() argument 54 pfn = (handle >> PAGE_SHIFT) + offset / PAGE_SIZE; in dma_cache_maint() 87 static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_dev_to_cpu() argument 90 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, DMA_UNMAP); in __xen_dma_page_dev_to_cpu() 93 static void __xen_dma_page_cpu_to_dev(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_cpu_to_dev() argument 96 dma_cache_maint(handle & PAGE_MASK, handle & ~PAGE_MASK, size, dir, DMA_MAP); in __xen_dma_page_cpu_to_dev() 111 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in __xen_dma_unmap_page() argument 121 __xen_dma_page_dev_to_cpu(hwdev, handle, size, dir); in __xen_dma_unmap_page() 125 dma_addr_t handle, size_t size, enum dma_data_direction dir) in __xen_dma_sync_single_for_cpu() argument 129 __xen_dma_page_dev_to_cpu(hwdev, handle, size, dir); in __xen_dma_sync_single_for_cpu() [all …]
|
/linux-4.1.27/include/net/bluetooth/ |
D | hci.h | 513 __le16 handle; member 519 __le16 handle; member 573 __le16 handle; member 579 __le16 handle; member 584 __le16 handle; member 590 __le16 handle; member 608 __le16 handle; member 613 __le16 handle; member 619 __le16 handle; member 624 __le16 handle; member [all …]
|
/linux-4.1.27/arch/m68k/kernel/ |
D | dma.c | 22 dma_addr_t *handle, gfp_t flag) in dma_alloc_coherent() argument 38 *handle = page_to_phys(page); in dma_alloc_coherent() 65 void *addr, dma_addr_t handle) in dma_free_coherent() argument 67 pr_debug("dma_free_coherent: %p, %x\n", addr, handle); in dma_free_coherent() 104 void dma_sync_single_for_device(struct device *dev, dma_addr_t handle, in dma_sync_single_for_device() argument 110 cache_push(handle, size); in dma_sync_single_for_device() 113 cache_clear(handle, size); in dma_sync_single_for_device() 136 dma_addr_t handle = virt_to_bus(addr); in dma_map_single() local 138 dma_sync_single_for_device(dev, handle, size, dir); in dma_map_single() 139 return handle; in dma_map_single() [all …]
|
/linux-4.1.27/include/uapi/linux/ |
D | phonet.h | 117 static inline __u8 pn_obj(__u16 handle) in pn_obj() argument 119 return handle & 0xff; in pn_obj() 122 static inline __u8 pn_dev(__u16 handle) in pn_dev() argument 124 return handle >> 8; in pn_dev() 127 static inline __u16 pn_port(__u16 handle) in pn_port() argument 129 return handle & 0x3ff; in pn_port() 132 static inline __u8 pn_addr(__u16 handle) in pn_addr() argument 134 return (handle >> 8) & 0xfc; in pn_addr() 151 __u16 handle) in pn_sockaddr_set_object() argument 153 spn->spn_dev = pn_dev(handle); in pn_sockaddr_set_object() [all …]
|
D | firewire-cdev.h | 137 __u32 handle; member 200 __u32 handle; member 326 __u32 handle; member 531 __u32 handle; member 575 __u32 handle; member 585 __u32 handle; member 642 __u32 handle; member 655 __u32 handle; member 702 __u32 handle; member 718 __u32 handle; member [all …]
|
/linux-4.1.27/sound/core/oss/ |
D | pcm_plugin.h | 85 int snd_pcm_plugin_build(struct snd_pcm_substream *handle, 94 snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t drv_… 95 snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t clt_s… 100 int snd_pcm_plugin_build_io(struct snd_pcm_substream *handle, 103 int snd_pcm_plugin_build_linear(struct snd_pcm_substream *handle, 107 int snd_pcm_plugin_build_mulaw(struct snd_pcm_substream *handle, 111 int snd_pcm_plugin_build_rate(struct snd_pcm_substream *handle, 115 int snd_pcm_plugin_build_route(struct snd_pcm_substream *handle, 119 int snd_pcm_plugin_build_copy(struct snd_pcm_substream *handle, 133 snd_pcm_sframes_t snd_pcm_plug_write_transfer(struct snd_pcm_substream *handle, [all …]
|
/linux-4.1.27/drivers/gpio/ |
D | gpiolib-acpi.c | 27 acpi_handle handle; member 124 acpi_handle handle; in acpi_get_gpiod() local 128 status = acpi_get_handle(NULL, path, &handle); in acpi_get_gpiod() 132 chip = gpiochip_find(handle, acpi_gpiochip_find); in acpi_get_gpiod() 147 acpi_evaluate_object(event->handle, NULL, NULL, NULL); in acpi_gpio_irq_handler() 156 acpi_execute_simple_method(event->handle, NULL, event->pin); in acpi_gpio_irq_handler_evt() 161 static void acpi_gpio_chip_dh(acpi_handle handle, void *data) in acpi_gpio_chip_dh() argument 172 acpi_handle handle, evt_handle; in acpi_gpiochip_request_interrupt() local 186 handle = ACPI_HANDLE(chip->dev); in acpi_gpiochip_request_interrupt() 194 if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle))) in acpi_gpiochip_request_interrupt() [all …]
|
/linux-4.1.27/drivers/mfd/ |
D | dln2.c | 31 __le16 handle; member 192 u16 handle, u16 rx_slot) in dln2_transfer_complete() argument 195 struct dln2_mod_rx_slots *rxs = &dln2->mod_rx_slots[handle]; in dln2_transfer_complete() 219 dev_warn(dev, "bad/late response %d/%d\n", handle, rx_slot); in dln2_transfer_complete() 246 u16 id, echo, handle, size; in dln2_rx() local 272 handle = le16_to_cpu(hdr->handle); in dln2_rx() 279 handle, id, echo, size, urb->actual_length); in dln2_rx() 283 if (handle >= DLN2_HANDLES) { in dln2_rx() 284 dev_warn(dev, "invalid handle %d\n", handle); in dln2_rx() 291 if (handle == DLN2_HANDLE_EVENT) { in dln2_rx() [all …]
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | mpic_timer.c | 282 void mpic_start_timer(struct mpic_timer *handle) in mpic_start_timer() argument 284 struct timer_group_priv *priv = container_of(handle, in mpic_start_timer() 285 struct timer_group_priv, timer[handle->num]); in mpic_start_timer() 287 clrbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_start_timer() 297 void mpic_stop_timer(struct mpic_timer *handle) in mpic_stop_timer() argument 299 struct timer_group_priv *priv = container_of(handle, in mpic_stop_timer() 300 struct timer_group_priv, timer[handle->num]); in mpic_stop_timer() 303 setbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_stop_timer() 305 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_stop_timer() 307 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer() [all …]
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_acpi.c | 105 static union acpi_object *radeon_atif_call(acpi_handle handle, int function, in radeon_atif_call() argument 129 status = acpi_evaluate_object(handle, "ATIF", &atif_arg, &buffer); in radeon_atif_call() 200 static int radeon_atif_verify_interface(acpi_handle handle, in radeon_atif_verify_interface() argument 208 info = radeon_atif_call(handle, ATIF_FUNCTION_VERIFY_INTERFACE, NULL); in radeon_atif_verify_interface() 247 static int radeon_atif_get_notification_params(acpi_handle handle, in radeon_atif_get_notification_params() argument 255 info = radeon_atif_call(handle, ATIF_FUNCTION_GET_SYSTEM_PARAMETERS, NULL); in radeon_atif_get_notification_params() 309 static int radeon_atif_get_sbios_requests(acpi_handle handle, in radeon_atif_get_sbios_requests() argument 316 info = radeon_atif_call(handle, ATIF_FUNCTION_GET_SYSTEM_BIOS_REQUESTS, NULL); in radeon_atif_get_sbios_requests() 353 acpi_handle handle; in radeon_atif_handler() local 368 handle = ACPI_HANDLE(&rdev->pdev->dev); in radeon_atif_handler() [all …]
|
D | radeon_gem.c | 254 uint32_t handle; in radeon_gem_create_ioctl() local 268 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_create_ioctl() 276 args->handle = handle; in radeon_gem_create_ioctl() 288 uint32_t handle; in radeon_gem_userptr_ioctl() local 349 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_userptr_ioctl() 355 args->handle = handle; in radeon_gem_userptr_ioctl() 385 gobj = drm_gem_object_lookup(dev, filp, args->handle); in radeon_gem_set_domain_ioctl() 402 uint32_t handle, uint64_t *offset_p) in radeon_mode_dumb_mmap() argument 407 gobj = drm_gem_object_lookup(dev, filp, handle); in radeon_mode_dumb_mmap() 426 return radeon_mode_dumb_mmap(filp, dev, args->handle, &args->addr_ptr); in radeon_gem_mmap_ioctl() [all …]
|
D | radeon_atpx_handler.c | 28 acpi_handle handle; member 75 static union acpi_object *radeon_atpx_call(acpi_handle handle, int function, in radeon_atpx_call() argument 99 status = acpi_evaluate_object(handle, NULL, &atpx_arg, &buffer); in radeon_atpx_call() 154 info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_GET_PX_PARAMETERS, NULL); in radeon_atpx_validate() 204 info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_VERIFY_INTERFACE, NULL); in radeon_atpx_verify_interface() 252 info = radeon_atpx_call(atpx->handle, in radeon_atpx_set_discrete_state() 284 info = radeon_atpx_call(atpx->handle, in radeon_atpx_switch_disp_mux() 316 info = radeon_atpx_call(atpx->handle, in radeon_atpx_switch_i2c_mux() 348 info = radeon_atpx_call(atpx->handle, in radeon_atpx_switch_start() 380 info = radeon_atpx_call(atpx->handle, in radeon_atpx_switch_end() [all …]
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
D | io_acpi_init.c | 39 acpi_handle handle; member 65 sn_acpi_hubdev_init(acpi_handle handle, u32 depth, void *context, void **ret) in sn_acpi_hubdev_init() argument 79 status = acpi_get_vendor_resource(handle, METHOD_NAME__CRS, in sn_acpi_hubdev_init() 82 acpi_get_name(handle, ACPI_FULL_PATHNAME, &name_buffer); in sn_acpi_hubdev_init() 95 acpi_get_name(handle, ACPI_FULL_PATHNAME, &name_buffer); in sn_acpi_hubdev_init() 128 acpi_handle handle; in sn_get_bussoft_ptr() local 135 handle = acpi_device_handle(PCI_CONTROLLER(bus)->companion); in sn_get_bussoft_ptr() 136 status = acpi_get_vendor_resource(handle, METHOD_NAME__CRS, in sn_get_bussoft_ptr() 139 acpi_get_name(handle, ACPI_FULL_PATHNAME, &name_buffer); in sn_get_bussoft_ptr() 171 sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info, in sn_extract_device_info() argument [all …]
|
/linux-4.1.27/include/acpi/ |
D | acpi_bus.h | 44 acpi_evaluate_integer(acpi_handle handle, 48 acpi_evaluate_reference(acpi_handle handle, 53 acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, 57 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); 59 bool acpi_has_method(acpi_handle handle, char *name); 60 acpi_status acpi_execute_simple_method(acpi_handle handle, char *method, 62 acpi_status acpi_evaluate_ej0(acpi_handle handle); 63 acpi_status acpi_evaluate_lck(acpi_handle handle, int lock); 64 bool acpi_ata_match(acpi_handle handle); 65 bool acpi_bay_match(acpi_handle handle); [all …]
|
D | acpiosxf.h | 122 void acpi_os_delete_lock(acpi_spinlock handle); 126 acpi_cpu_flags acpi_os_acquire_lock(acpi_spinlock handle); 130 void acpi_os_release_lock(acpi_spinlock handle, acpi_cpu_flags flags); 143 acpi_status acpi_os_delete_semaphore(acpi_semaphore handle); 148 acpi_os_wait_semaphore(acpi_semaphore handle, u32 units, u16 timeout); 152 acpi_status acpi_os_signal_semaphore(acpi_semaphore handle, u32 units); 166 void acpi_os_delete_mutex(acpi_mutex handle); 170 acpi_status acpi_os_acquire_mutex(acpi_mutex handle, u16 timeout); 174 void acpi_os_release_mutex(acpi_mutex handle);
|
/linux-4.1.27/arch/c6x/include/asm/ |
D | dma-mapping.h | 50 extern void dma_unmap_single(struct device *dev, dma_addr_t handle, 63 dma_addr_t handle; in dma_map_page() local 65 handle = dma_map_single(dev, page_address(page) + offset, size, dir); in dma_map_page() 67 debug_dma_map_page(dev, page, offset, size, dir, handle, false); in dma_map_page() 69 return handle; in dma_map_page() 72 static inline void dma_unmap_page(struct device *dev, dma_addr_t handle, in dma_unmap_page() argument 75 dma_unmap_single(dev, handle, size, dir); in dma_unmap_page() 77 debug_dma_unmap_page(dev, handle, size, dir, false); in dma_unmap_page() 80 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t handle, 83 extern void dma_sync_single_for_device(struct device *dev, dma_addr_t handle,
|
/linux-4.1.27/arch/c6x/kernel/ |
D | dma.c | 17 static void c6x_dma_sync(dma_addr_t handle, size_t size, in c6x_dma_sync() argument 20 unsigned long paddr = handle; in c6x_dma_sync() 54 void dma_unmap_single(struct device *dev, dma_addr_t handle, in dma_unmap_single() argument 57 c6x_dma_sync(handle, size, dir); in dma_unmap_single() 59 debug_dma_unmap_page(dev, handle, size, dir, true); in dma_unmap_single() 94 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t handle, in dma_sync_single_for_cpu() argument 97 c6x_dma_sync(handle, size, dir); in dma_sync_single_for_cpu() 99 debug_dma_sync_single_for_cpu(dev, handle, size, dir); in dma_sync_single_for_cpu() 104 void dma_sync_single_for_device(struct device *dev, dma_addr_t handle, in dma_sync_single_for_device() argument 107 c6x_dma_sync(handle, size, dir); in dma_sync_single_for_device() [all …]
|
/linux-4.1.27/include/drm/ |
D | drm_os_linux.h | 26 #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) 28 #define DRM_READ16(map, offset) readw(((void __iomem *)(map)->handle) + (offset)) 30 #define DRM_READ32(map, offset) readl(((void __iomem *)(map)->handle) + (offset)) 32 #define DRM_WRITE8(map, offset, val) writeb(val, ((void __iomem *)(map)->handle) + (offset)) 34 #define DRM_WRITE16(map, offset, val) writew(val, ((void __iomem *)(map)->handle) + (offset)) 36 #define DRM_WRITE32(map, offset, val) writel(val, ((void __iomem *)(map)->handle) + (offset)) 39 #define DRM_READ64(map, offset) readq(((void __iomem *)(map)->handle) + (offset)) 41 #define DRM_WRITE64(map, offset, val) writeq(val, ((void __iomem *)(map)->handle) + (offset))
|
/linux-4.1.27/arch/mips/include/asm/fw/cfe/ |
D | cfe_api.h | 97 int cfe_close(int handle); 109 int cfe_init(uint64_t handle, uint64_t ept); 110 int cfe_inpstat(int handle); 111 int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, 114 int cfe_read(int handle, unsigned char *buffer, int length); 115 int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, 118 int cfe_write(int handle, const char *buffer, int length); 119 int cfe_writeblk(int handle, int64_t offset, const char *buffer,
|
/linux-4.1.27/drivers/media/radio/ |
D | lm7000.h | 20 static inline void lm7000_set_freq(u32 freq, void *handle, in lm7000_set_freq() argument 21 void (*set_pins)(void *handle, u8 pins)) in lm7000_set_freq() argument 33 set_pins(handle, data | LM7000_CE); in lm7000_set_freq() 35 set_pins(handle, data | LM7000_CE | LM7000_CLK); in lm7000_set_freq() 37 set_pins(handle, data | LM7000_CE); in lm7000_set_freq() 40 set_pins(handle, 0); in lm7000_set_freq()
|
/linux-4.1.27/include/uapi/drm/ |
D | tegra_drm.h | 34 __u32 handle; member 38 __u32 handle; member 90 __u32 handle; member 98 __u32 handle; member 102 __u32 handle; member 110 __u32 handle; member 139 __u32 handle; member 147 __u32 handle; member 159 __u32 handle; member 166 __u32 handle; member
|
D | vmwgfx_drm.h | 336 uint32_t handle; member 390 uint32_t handle; member 426 uint32_t handle; member 481 uint32_t handle; member 622 uint32_t handle; member 653 uint32_t handle; member 679 uint32_t handle; member 724 uint32_t handle; member 870 uint32_t handle; member 941 uint32_t handle; member [all …]
|
D | i915_drm.h | 446 __u32 handle; member 452 __u32 handle; member 468 __u32 handle; member 484 __u32 handle; member 512 __u32 handle; member 524 __u32 handle; member 535 __u32 handle; member 611 __u32 handle; member 661 __u32 handle; member 773 __u32 handle; member [all …]
|
/linux-4.1.27/drivers/thermal/int340x_thermal/ |
D | int3402_thermal.c | 23 acpi_handle *handle; member 27 static void int3402_notify(acpi_handle handle, u32 event, void *data) in int3402_notify() argument 51 if (!acpi_has_method(adev->handle, "_TMP")) in int3402_thermal_probe() 62 ret = acpi_install_notify_handler(adev->handle, in int3402_thermal_probe() 71 d->handle = adev->handle; in int3402_thermal_probe() 81 acpi_remove_notify_handler(d->handle, in int3402_thermal_remove()
|
D | int340x_thermal_zone.c | 32 status = acpi_evaluate_integer(d->adev->handle, "_TMP", NULL, &tmp); in int340x_thermal_get_zone_temp() 127 status = acpi_execute_simple_method(d->adev->handle, name, in int340x_thermal_set_trip_temp() 148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_get_trip_hyst() 165 static int int340x_thermal_get_trip_config(acpi_handle handle, char *name, in int340x_thermal_get_trip_config() argument 171 status = acpi_evaluate_integer(handle, name, NULL, &r); in int340x_thermal_get_trip_config() 202 status = acpi_evaluate_integer(adev->handle, "PATC", NULL, &trip_cnt); in int340x_thermal_zone_add() 218 if (!int340x_thermal_get_trip_config(adev->handle, "_CRT", in int340x_thermal_zone_add() 222 if (!int340x_thermal_get_trip_config(adev->handle, "_HOT", in int340x_thermal_zone_add() 226 if (!int340x_thermal_get_trip_config(adev->handle, "_PSV", in int340x_thermal_zone_add() 232 if (int340x_thermal_get_trip_config(adev->handle, name, in int340x_thermal_zone_add() [all …]
|
D | acpi_thermal_rel.c | 70 int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trtp, in acpi_parse_trt() argument 84 if (!acpi_has_method(handle, "_TRT")) in acpi_parse_trt() 87 status = acpi_evaluate_object(handle, "_TRT", NULL, &buffer); in acpi_parse_trt() 150 int acpi_parse_art(acpi_handle handle, int *art_count, struct art **artp, in acpi_parse_art() argument 165 if (!acpi_has_method(handle, "_ART")) in acpi_parse_art() 168 status = acpi_evaluate_object(handle, "_ART", NULL, &buffer); in acpi_parse_art() 226 static void get_single_name(acpi_handle handle, char *name) in get_single_name() argument 230 if (ACPI_FAILURE(acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer))) in get_single_name() 375 int acpi_thermal_rel_misc_device_add(acpi_handle handle) in acpi_thermal_rel_misc_device_add() argument 377 acpi_thermal_rel_handle = handle; in acpi_thermal_rel_misc_device_add() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_acpi.c | 74 static int nouveau_optimus_dsm(acpi_handle handle, int func, int arg, uint32_t *result) in nouveau_optimus_dsm() argument 90 obj = acpi_evaluate_dsm_typed(handle, nouveau_op_dsm_muid, 0x00000100, in nouveau_optimus_dsm() 93 acpi_handle_info(handle, "failed to evaluate _DSM\n"); in nouveau_optimus_dsm() 113 static int nouveau_check_optimus_dsm(acpi_handle handle) in nouveau_check_optimus_dsm() argument 121 if (nouveau_optimus_dsm(handle, 0, 0, &result)) in nouveau_check_optimus_dsm() 131 static int nouveau_dsm(acpi_handle handle, int func, int arg) in nouveau_dsm() argument 140 obj = acpi_evaluate_dsm_typed(handle, nouveau_dsm_muid, 0x00000102, in nouveau_dsm() 143 acpi_handle_info(handle, "failed to evaluate _DSM\n"); in nouveau_dsm() 154 static int nouveau_dsm_switch_mux(acpi_handle handle, int mux_id) in nouveau_dsm_switch_mux() argument 158 return nouveau_dsm(handle, NOUVEAU_DSM_LED, mux_id); in nouveau_dsm_switch_mux() [all …]
|
D | nv04_fbcon.c | 209 OUT_RING(chan, nfbdev->surf2d.handle); in nv04_fbcon_accel_init() 211 OUT_RING(chan, chan->vram.handle); in nv04_fbcon_accel_init() 212 OUT_RING(chan, chan->vram.handle); in nv04_fbcon_accel_init() 220 OUT_RING(chan, nfbdev->rop.handle); in nv04_fbcon_accel_init() 225 OUT_RING(chan, nfbdev->patt.handle); in nv04_fbcon_accel_init() 241 OUT_RING(chan, nfbdev->clip.handle); in nv04_fbcon_accel_init() 247 OUT_RING(chan, nfbdev->blit.handle); in nv04_fbcon_accel_init() 249 OUT_RING(chan, nfbdev->surf2d.handle); in nv04_fbcon_accel_init() 260 OUT_RING(chan, nfbdev->gdi.handle); in nv04_fbcon_accel_init() 262 OUT_RING(chan, nfbdev->surf2d.handle); in nv04_fbcon_accel_init() [all …]
|
D | nouveau_chan.c | 57 chan->object->handle, nvxx_client(&cli->base)->name); in nouveau_channel_idle() 88 u32 handle, u32 size, struct nouveau_channel **pchan) in nouveau_channel_prep() argument 173 (handle & 0xffff), NV_DMA_FROM_MEMORY, in nouveau_channel_prep() 185 u32 handle, u32 engine, struct nouveau_channel **pchan) in nouveau_channel_ind() argument 203 ret = nouveau_channel_prep(drm, device, handle, 0x12000, &chan); in nouveau_channel_ind() 213 args.kepler.pushbuf = chan->push.ctxdma.handle; in nouveau_channel_ind() 219 args.nv50.pushbuf = chan->push.ctxdma.handle; in nouveau_channel_ind() 225 ret = nvif_object_new(nvif_object(device), handle, *oclass++, in nouveau_channel_ind() 243 u32 handle, struct nouveau_channel **pchan) in nouveau_channel_dma() argument 256 ret = nouveau_channel_prep(drm, device, handle, 0x10000, &chan); in nouveau_channel_dma() [all …]
|
D | nouveau_abi16.h | 18 u32 handle; member 57 uint32_t handle; member 69 uint32_t handle; member 75 uint32_t handle; member 82 uint32_t handle; member
|
/linux-4.1.27/fs/notify/ |
D | fdinfo.c | 43 struct file_handle handle; in show_mark_fhandle() member 48 f.handle.handle_bytes = sizeof(f.pad); in show_mark_fhandle() 49 size = f.handle.handle_bytes >> 2; in show_mark_fhandle() 51 ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, 0); in show_mark_fhandle() 57 f.handle.handle_type = ret; in show_mark_fhandle() 58 f.handle.handle_bytes = size * sizeof(u32); in show_mark_fhandle() 61 f.handle.handle_bytes, f.handle.handle_type); in show_mark_fhandle() 63 for (i = 0; i < f.handle.handle_bytes; i++) in show_mark_fhandle() 64 seq_printf(m, "%02x", (int)f.handle.f_handle[i]); in show_mark_fhandle()
|
/linux-4.1.27/drivers/usb/wusbcore/ |
D | mmc.c | 98 unsigned handle, itr; in wusbhc_mmcie_set() local 105 handle = wusbhc->mmcies_max - 1; in wusbhc_mmcie_set() 114 handle = ~0; in wusbhc_mmcie_set() 117 handle = itr; in wusbhc_mmcie_set() 121 handle = itr; in wusbhc_mmcie_set() 123 if (handle == ~0) in wusbhc_mmcie_set() 126 result = (wusbhc->mmcie_add)(wusbhc, interval, repeat_cnt, handle, in wusbhc_mmcie_set() 129 wusbhc->mmcie[handle] = wuie; in wusbhc_mmcie_set() 144 unsigned handle, itr; in wusbhc_mmcie_rm() local 149 handle = itr; in wusbhc_mmcie_rm() [all …]
|
/linux-4.1.27/arch/sparc/kernel/ |
D | ds.c | 85 __u64 handle; member 93 __u64 handle; member 99 __u64 handle; member 105 __u64 handle; member 110 __u64 handle; member 115 __u64 handle; member 120 __u64 handle; member 125 __u64 handle; member 131 __u64 handle; member 219 static struct ds_cap_state *find_cap(struct ds_info *dp, u64 handle) in find_cap() argument [all …]
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_dumb.c | 37 uint32_t handle; in qxl_mode_dumb_create() local 63 &handle); in qxl_mode_dumb_create() 67 args->handle = handle; in qxl_mode_dumb_create() 73 uint32_t handle, uint64_t *offset_p) in qxl_mode_dumb_mmap() argument 79 gobj = drm_gem_object_lookup(dev, file_priv, handle); in qxl_mode_dumb_mmap()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
D | cx18-streams.c | 266 s->handle = CX18_INVALID_TASK_HANDLE; in cx18_stream_init() 604 data[0] = s->handle; in cx18_vbi_setup() 697 if (s->handle == CX18_INVALID_TASK_HANDLE || in _cx18_stream_put_mdl_fw() 707 cx18_vapi(cx, CX18_CPU_DE_SET_MDL, 5, s->handle, in _cx18_stream_put_mdl_fw() 842 s->handle = data[0]; in cx18_start_v4l2_encode_stream() 843 cx18_vapi(cx, CX18_CPU_SET_CHANNEL_TYPE, 2, s->handle, captype); in cx18_start_v4l2_encode_stream() 857 cx18_vapi(cx, CX18_CPU_SET_VER_CROP_LINE, 2, s->handle, 0); in cx18_start_v4l2_encode_stream() 858 cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 3, 1); in cx18_start_v4l2_encode_stream() 859 cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 8, 0); in cx18_start_v4l2_encode_stream() 860 cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 4, 1); in cx18_start_v4l2_encode_stream() [all …]
|
/linux-4.1.27/net/bluetooth/ |
D | amp.c | 105 if (++mgr->handle == 0) in __next_handle() 106 mgr->handle = 1; in __next_handle() 108 return mgr->handle; in __next_handle() 126 hcon->handle = __next_handle(mgr); in phylink_add() 256 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data() 300 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag() 317 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle) in amp_write_rem_assoc_continue() argument 321 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle); in amp_write_rem_assoc_continue() 323 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue() 332 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle) in amp_write_remote_assoc() argument [all …]
|
D | hci_conn.c | 148 clkoff_cp.handle = cpu_to_le16(conn->handle); in hci_disconnect() 155 cp.handle = cpu_to_le16(conn->handle); in hci_disconnect() 168 cp.phy_handle = HCI_PHY_HANDLE(conn->handle); in hci_amp_disconn() 174 static void hci_add_sco(struct hci_conn *conn, __u16 handle) in hci_add_sco() argument 186 cp.handle = cpu_to_le16(handle); in hci_add_sco() 192 bool hci_setup_sync(struct hci_conn *conn, __u16 handle) in hci_setup_sync() argument 205 cp.handle = cpu_to_le16(handle); in hci_setup_sync() 262 cp.handle = cpu_to_le16(conn->handle); in hci_le_conn_update() 288 cp.handle = cpu_to_le16(conn->handle); in hci_le_start_enc() 308 hci_setup_sync(sco, conn->handle); in hci_sco_setup() [all …]
|
/linux-4.1.27/drivers/pnp/pnpacpi/ |
D | core.c | 65 acpi_handle handle; in pnpacpi_set_resources() local 79 handle = acpi_dev->handle; in pnpacpi_set_resources() 80 if (acpi_has_method(handle, METHOD_NAME__SRS)) { in pnpacpi_set_resources() 91 status = acpi_set_current_resources(handle, &buffer); in pnpacpi_set_resources() 121 status = acpi_evaluate_object(acpi_dev->handle, "_DIS", NULL, NULL); in pnpacpi_disable_resources() 138 return acpi_bus_can_wakeup(acpi_dev->handle); in pnpacpi_can_wakeup() 237 if (!acpi_has_method(device->handle, "_CRS")) in pnpacpi_add_device() 255 if (acpi_has_method(device->handle, "_SRS")) in pnpacpi_add_device() 262 if (acpi_has_method(device->handle, "_DIS")) in pnpacpi_add_device() 299 static acpi_status __init pnpacpi_add_device_handler(acpi_handle handle, in pnpacpi_add_device_handler() argument [all …]
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
D | osunixxf.c | 612 acpi_status acpi_os_delete_semaphore(acpi_handle handle) in acpi_os_delete_semaphore() argument 617 acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) in acpi_os_wait_semaphore() argument 622 acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) in acpi_os_signal_semaphore() argument 691 acpi_status acpi_os_delete_semaphore(acpi_handle handle) in acpi_os_delete_semaphore() argument 693 sem_t *sem = (sem_t *) handle; in acpi_os_delete_semaphore() 721 acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 msec_timeout) in acpi_os_wait_semaphore() argument 724 sem_t *sem = (sem_t *) handle; in acpi_os_wait_semaphore() 835 acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) in acpi_os_signal_semaphore() argument 837 sem_t *sem = (sem_t *) handle; in acpi_os_signal_semaphore() 866 void acpi_os_delete_lock(acpi_spinlock handle) in acpi_os_delete_lock() argument [all …]
|
/linux-4.1.27/drivers/firmware/efi/libstub/ |
D | arm-stub.c | 53 void *handle = (void *)(unsigned long)image->device_handle; in efi_open_volume() local 55 status = sys_table_arg->boottime->handle_protocol(handle, in efi_open_volume() 70 efi_status_t efi_file_close(void *handle) in efi_file_close() argument 72 efi_file_handle_t *fh = handle; in efi_file_close() 74 return fh->close(handle); in efi_file_close() 78 efi_file_read(void *handle, unsigned long *size, void *addr) in efi_file_read() argument 80 efi_file_handle_t *fh = handle; in efi_file_read() 82 return fh->read(handle, size, addr); in efi_file_read() 88 efi_char16_t *filename_16, void **handle, u64 *file_sz) in efi_file_size() argument 104 *handle = h; in efi_file_size() [all …]
|
/linux-4.1.27/drivers/tty/ |
D | sysrq.c | 582 struct input_handle handle; member 725 struct input_handle *handle = &sysrq->handle; in sysrq_reinject_alt_sysrq() local 734 input_inject_event(handle, EV_KEY, alt_code, 1); in sysrq_reinject_alt_sysrq() 735 input_inject_event(handle, EV_KEY, KEY_SYSRQ, 1); in sysrq_reinject_alt_sysrq() 736 input_inject_event(handle, EV_SYN, SYN_REPORT, 1); in sysrq_reinject_alt_sysrq() 738 input_inject_event(handle, EV_KEY, KEY_SYSRQ, 0); in sysrq_reinject_alt_sysrq() 739 input_inject_event(handle, EV_KEY, alt_code, 0); in sysrq_reinject_alt_sysrq() 740 input_inject_event(handle, EV_SYN, SYN_REPORT, 1); in sysrq_reinject_alt_sysrq() 790 clear_bit(KEY_SYSRQ, sysrq->handle.dev->key); in sysrq_handle_keypress() 839 static bool sysrq_filter(struct input_handle *handle, in sysrq_filter() argument [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
D | wil_platform.h | 26 int (*bus_request)(void *handle, uint32_t kbps /* KBytes/Sec */); 27 int (*suspend)(void *handle); 28 int (*resume)(void *handle); 29 void (*uninit)(void *handle);
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_iocb.c | 319 uint32_t handle; in qla2x00_start_scsi() local 353 handle = req->current_outstanding_cmd; in qla2x00_start_scsi() 355 handle++; in qla2x00_start_scsi() 356 if (handle == req->num_outstanding_cmds) in qla2x00_start_scsi() 357 handle = 1; in qla2x00_start_scsi() 358 if (!req->outstanding_cmds[handle]) in qla2x00_start_scsi() 390 req->current_outstanding_cmd = handle; in qla2x00_start_scsi() 391 req->outstanding_cmds[handle] = sp; in qla2x00_start_scsi() 392 sp->handle = handle; in qla2x00_start_scsi() 393 cmd->host_scribble = (unsigned char *)(unsigned long)handle; in qla2x00_start_scsi() [all …]
|
/linux-4.1.27/arch/arm/mm/ |
D | dma-mapping.c | 105 static void arm_dma_unmap_page(struct device *dev, dma_addr_t handle, in arm_dma_unmap_page() argument 110 __dma_page_dev_to_cpu(pfn_to_page(dma_to_pfn(dev, handle)), in arm_dma_unmap_page() 111 handle & ~PAGE_MASK, size, dir); in arm_dma_unmap_page() 115 dma_addr_t handle, size_t size, enum dma_data_direction dir) in arm_dma_sync_single_for_cpu() argument 117 unsigned int offset = handle & (PAGE_SIZE - 1); in arm_dma_sync_single_for_cpu() 118 struct page *page = pfn_to_page(dma_to_pfn(dev, handle-offset)); in arm_dma_sync_single_for_cpu() 123 dma_addr_t handle, size_t size, enum dma_data_direction dir) in arm_dma_sync_single_for_device() argument 125 unsigned int offset = handle & (PAGE_SIZE - 1); in arm_dma_sync_single_for_device() 126 struct page *page = pfn_to_page(dma_to_pfn(dev, handle-offset)); in arm_dma_sync_single_for_device() 148 dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs); [all …]
|
/linux-4.1.27/drivers/block/xen-blkback/ |
D | common.h | 73 blkif_vdev_t handle; /* only for read/write requests */ member 98 blkif_vdev_t handle; member 133 blkif_vdev_t handle; /* only for read/write requests */ member 162 blkif_vdev_t handle; member 222 blkif_vdev_t handle; member 256 grant_handle_t handle; member 265 unsigned int handle; member 333 grant_handle_t handle; member 407 dst->u.rw.handle = src->u.rw.handle; in blkif_get_x86_32_req() 425 dst->u.indirect.handle = src->u.indirect.handle; in blkif_get_x86_32_req() [all …]
|
/linux-4.1.27/arch/mips/fw/cfe/ |
D | cfe_api.c | 48 static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb); 51 int cfe_init(u64 handle, u64 ept) in cfe_init() argument 54 cfe_handle = handle; in cfe_init() 65 int cfe_close(int handle) in cfe_close() argument 71 xiocb.xiocb_handle = handle; in cfe_close() 303 int cfe_inpstat(int handle) in cfe_inpstat() argument 309 xiocb.xiocb_handle = handle; in cfe_inpstat() 322 cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, in cfe_ioctl() argument 329 xiocb.xiocb_handle = handle; in cfe_ioctl() 364 int cfe_read(int handle, unsigned char *buffer, int length) in cfe_read() argument [all …]
|
/linux-4.1.27/drivers/pci/pcie/ |
D | portdrv_acpi.c | 38 acpi_handle handle; in pcie_port_acpi_setup() local 44 handle = acpi_find_root_bridge_handle(port); in pcie_port_acpi_setup() 45 if (!handle) in pcie_port_acpi_setup() 48 root = acpi_pci_find_root(handle); in pcie_port_acpi_setup()
|
/linux-4.1.27/drivers/pci/ |
D | pci-acpi.c | 30 phys_addr_t acpi_pci_root_get_mcfg_addr(acpi_handle handle) in acpi_pci_root_get_mcfg_addr() argument 35 if (handle) in acpi_pci_root_get_mcfg_addr() 36 status = acpi_evaluate_integer(handle, METHOD_NAME__CBA, in acpi_pci_root_get_mcfg_addr() 145 static acpi_status acpi_run_hpx(acpi_handle handle, struct hotplug_params *hpx) in acpi_run_hpx() argument 156 status = acpi_evaluate_object(handle, "_HPX", NULL, &buffer); in acpi_run_hpx() 209 static acpi_status acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp) in acpi_run_hpp() argument 218 status = acpi_evaluate_object(handle, "_HPP", NULL, &buffer); in acpi_run_hpp() 257 acpi_handle handle, phandle; in pci_get_hp_params() local 263 handle = NULL; in pci_get_hp_params() 265 handle = acpi_pci_get_bridge_handle(pbus); in pci_get_hp_params() [all …]
|
/linux-4.1.27/drivers/net/wireless/rsi/ |
D | rsi_common.h | 73 static inline int rsi_kill_thread(struct rsi_thread *handle) in rsi_kill_thread() argument 75 atomic_inc(&handle->thread_done); in rsi_kill_thread() 76 rsi_set_event(&handle->event); in rsi_kill_thread() 78 wait_for_completion(&handle->completion); in rsi_kill_thread() 79 return kthread_stop(handle->task); in rsi_kill_thread()
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | mdesc.h | 20 u64 mdesc_node_by_name(struct mdesc_handle *handle, 37 const void *mdesc_get_property(struct mdesc_handle *handle, 53 u64 mdesc_next_arc(struct mdesc_handle *handle, u64 from, 65 void (*add)(struct mdesc_handle *handle, u64 node); 66 void (*remove)(struct mdesc_handle *handle, u64 node);
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | llog.c | 169 struct llog_handle *handle, in llog_read_header() argument 175 rc = llog_handle2ops(handle, &lop); in llog_read_header() 182 rc = lop->lop_read_header(env, handle); in llog_read_header() 184 struct llog_log_hdr *llh = handle->lgh_hdr; in llog_read_header() 186 handle->lgh_last_idx = 0; /* header is record with index 0 */ in llog_read_header() 202 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle, in llog_init_handle() argument 208 LASSERT(handle->lgh_hdr == NULL); in llog_init_handle() 213 handle->lgh_hdr = llh; in llog_init_handle() 216 rc = llog_read_header(env, handle, uuid); in llog_init_handle() 223 handle->lgh_ctxt->loc_obd->obd_name, in llog_init_handle() [all …]
|
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/ |
D | ehea_qmr.c | 146 hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, in ehea_create_cq() 166 hret = ehea_h_register_rpage(adapter->handle, in ehea_create_cq() 203 ehea_h_free_resource(adapter->handle, cq->fw_handle, FORCE_FREE); in ehea_create_cq() 215 u64 adapter_handle = cq->adapter->handle; in ehea_destroy_cq_res() 268 hret = ehea_h_alloc_resource_eq(adapter->handle, in ehea_create_eq() 292 hret = ehea_h_register_rpage(adapter->handle, 0, in ehea_create_eq() 316 ehea_h_free_resource(adapter->handle, eq->fw_handle, FORCE_FREE); in ehea_create_eq() 342 hret = ehea_h_free_resource(eq->adapter->handle, eq->fw_handle, force); in ehea_destroy_eq_res() 396 hret = ehea_h_register_rpage(adapter->handle, in ehea_qp_alloc_register() 433 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp() [all …]
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_gem.c | 242 u32 handle; in armada_gem_dumb_create() local 257 ret = drm_gem_handle_create(file, &dobj->obj, &handle); in armada_gem_dumb_create() 261 args->handle = handle; in armada_gem_dumb_create() 264 DRM_DEBUG_DRIVER("obj %p size %zu handle %#x\n", dobj, size, handle); in armada_gem_dumb_create() 271 uint32_t handle, uint64_t *offset) in armada_gem_dumb_map_offset() argument 277 obj = armada_gem_object_lookup(dev, file, handle); in armada_gem_dumb_map_offset() 293 DRM_DEBUG_DRIVER("handle %#x offset %llx\n", handle, *offset); in armada_gem_dumb_map_offset() 304 uint32_t handle) in armada_gem_dumb_destroy() argument 306 return drm_gem_handle_delete(file, handle); in armada_gem_dumb_destroy() 316 u32 handle; in armada_gem_create_ioctl() local [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.h | 76 typedef void (*arp_err_handler_t)(void *handle, struct sk_buff *skb); 82 void *handle; member 88 static inline void t4_set_arp_err_handler(struct sk_buff *skb, void *handle, in t4_set_arp_err_handler() argument 91 L2T_SKB_CB(skb)->handle = handle; in t4_set_arp_err_handler()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
D | nv44.c | 78 .handle = NV_ENGCTX(MPEG, 0x44), 99 struct nvkm_handle *handle; in nv44_mpeg_intr() local 120 handle = nvkm_handle_get_class(engctx, 0x3174); in nv44_mpeg_intr() 121 if (handle && !nv_call(handle->object, mthd, data)) in nv44_mpeg_intr() 123 nvkm_handle_put(handle); in nv44_mpeg_intr() 178 .handle = NV_ENGINE(MPEG, 0x44),
|
/linux-4.1.27/drivers/usb/core/ |
D | usb-acpi.c | 88 static enum usb_port_connect_type usb_acpi_get_connect_type(acpi_handle handle, in usb_acpi_get_connect_type() argument 104 status = acpi_evaluate_object(handle, "_UPC", NULL, &buffer); in usb_acpi_get_connect_type() 161 acpi_handle *handle; in usb_acpi_find_companion() local 193 handle = adev->handle; in usb_acpi_find_companion() 194 status = acpi_get_physical_device_location(handle, &pld); in usb_acpi_find_companion() 200 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); in usb_acpi_find_companion()
|
/linux-4.1.27/Documentation/devicetree/bindings/net/ |
D | hisilicon-hip04-net.txt | 9 - port-handle: <phandle port channel> 16 - phy-handle: see ethernet.txt [1]. 69 port-handle = <&ppe 31 0>; 77 port-handle = <&ppe 0 1>; 78 phy-handle = <&phy0>; 86 port-handle = <&ppe 8 2>; 87 phy-handle = <&phy1>;
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
D | dadapter.c | 86 static void diva_remove_adapter_callback(dword handle); 224 pinfo->handle = diva_register_adapter_callback( \ in diva_dadapter_request() 231 diva_remove_adapter_callback(pinfo->handle); in diva_dadapter_request() 291 static void diva_remove_adapter_callback(dword handle) { in diva_remove_adapter_callback() argument 293 if (handle && ((--handle) < DIVA_DIDD_MAX_NOTIFICATIONS)) { in diva_remove_adapter_callback() 295 NotificationTable[handle].callback = NULL; in diva_remove_adapter_callback() 296 NotificationTable[handle].context = NULL; in diva_remove_adapter_callback() 298 DBG_TRC(("Remove adapter notification[%d]", (int)(handle + 1))) in diva_remove_adapter_callback() 301 DBG_ERR(("Can't remove adapter notification, handle=%d", handle)) in diva_remove_adapter_callback()
|
/linux-4.1.27/drivers/media/i2c/m5mols/ |
D | m5mols_controls.c | 553 v4l2_ctrl_handler_init(&info->handle, 20); in m5mols_init_controls() 555 info->auto_wb = v4l2_ctrl_new_std_menu(&info->handle, in m5mols_init_controls() 560 info->auto_exposure = v4l2_ctrl_new_std_menu(&info->handle, in m5mols_init_controls() 564 info->exposure = v4l2_ctrl_new_std(&info->handle, in m5mols_init_controls() 568 info->exposure_bias = v4l2_ctrl_new_int_menu(&info->handle, in m5mols_init_controls() 574 info->metering = v4l2_ctrl_new_std_menu(&info->handle, in m5mols_init_controls() 579 info->auto_iso = v4l2_ctrl_new_std_menu(&info->handle, &m5mols_ctrl_ops, in m5mols_init_controls() 582 info->iso = v4l2_ctrl_new_int_menu(&info->handle, &m5mols_ctrl_ops, in m5mols_init_controls() 586 info->saturation = v4l2_ctrl_new_std(&info->handle, &m5mols_ctrl_ops, in m5mols_init_controls() 589 info->zoom = v4l2_ctrl_new_std(&info->handle, &m5mols_ctrl_ops, in m5mols_init_controls() [all …]
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | uvc_v4l2.c | 289 struct uvc_file_handle *handle; in uvc_v4l2_open() local 291 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in uvc_v4l2_open() 292 if (handle == NULL) in uvc_v4l2_open() 295 v4l2_fh_init(&handle->vfh, vdev); in uvc_v4l2_open() 296 v4l2_fh_add(&handle->vfh); in uvc_v4l2_open() 298 handle->device = &uvc->video; in uvc_v4l2_open() 299 file->private_data = &handle->vfh; in uvc_v4l2_open() 310 struct uvc_file_handle *handle = to_uvc_file_handle(file->private_data); in uvc_v4l2_release() local 311 struct uvc_video *video = handle->device; in uvc_v4l2_release() 321 v4l2_fh_del(&handle->vfh); in uvc_v4l2_release() [all …]
|
/linux-4.1.27/include/xen/ |
D | acpi.h | 64 acpi_handle handle; in xen_acpi_get_pxm() local 68 handle = phandle; in xen_acpi_get_pxm() 69 status = acpi_evaluate_integer(handle, "_PXM", NULL, &pxm); in xen_acpi_get_pxm() 72 status = acpi_get_parent(handle, &phandle); in xen_acpi_get_pxm()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | llog_client.c | 293 struct llog_handle *handle) in llog_client_read_header() argument 302 LLOG_CLIENT_ENTRY(handle->lgh_ctxt, imp); in llog_client_read_header() 312 body->lgd_logid = handle->lgh_id; in llog_client_read_header() 313 body->lgd_ctxt_idx = handle->lgh_ctxt->loc_idx - 1; in llog_client_read_header() 314 body->lgd_llh_flags = handle->lgh_hdr->llh_flags; in llog_client_read_header() 327 memcpy(handle->lgh_hdr, hdr, sizeof(*hdr)); in llog_client_read_header() 328 handle->lgh_last_idx = handle->lgh_hdr->llh_tail.lrt_index; in llog_client_read_header() 331 llh_hdr = &handle->lgh_hdr->llh_hdr; in llog_client_read_header() 345 LLOG_CLIENT_EXIT(handle->lgh_ctxt, imp); in llog_client_read_header() 350 struct llog_handle *handle) in llog_client_close() argument
|
/linux-4.1.27/tools/lib/traceevent/ |
D | event-plugin.c | 50 void *handle; member 292 void *handle; in load_plugin() local 304 handle = dlopen(plugin, RTLD_NOW | RTLD_GLOBAL); in load_plugin() 305 if (!handle) { in load_plugin() 311 alias = dlsym(handle, PEVENT_PLUGIN_ALIAS_NAME); in load_plugin() 315 func = dlsym(handle, PEVENT_PLUGIN_LOADER_NAME); in load_plugin() 329 list->handle = handle; in load_plugin() 457 func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); in traceevent_unload_plugins() 460 dlclose(list->handle); in traceevent_unload_plugins()
|