/Linux-v4.19/drivers/input/misc/ |
D | adxl34x.c | 181 #define AC_READ(ac, reg) ((ac)->bops->read((ac)->dev, reg)) argument 182 #define AC_WRITE(ac, reg, val) ((ac)->bops->write((ac)->dev, reg, val)) argument 238 static void adxl34x_get_triple(struct adxl34x *ac, struct axis_triple *axis) in adxl34x_get_triple() argument 242 ac->bops->read_block(ac->dev, DATAX0, DATAZ1 - DATAX0 + 1, buf); in adxl34x_get_triple() 244 mutex_lock(&ac->mutex); in adxl34x_get_triple() 245 ac->saved.x = (s16) le16_to_cpu(buf[0]); in adxl34x_get_triple() 246 axis->x = ac->saved.x; in adxl34x_get_triple() 248 ac->saved.y = (s16) le16_to_cpu(buf[1]); in adxl34x_get_triple() 249 axis->y = ac->saved.y; in adxl34x_get_triple() 251 ac->saved.z = (s16) le16_to_cpu(buf[2]); in adxl34x_get_triple() [all …]
|
D | adxl34x-spi.c | 70 struct adxl34x *ac; in adxl34x_spi_probe() local 78 ac = adxl34x_probe(&spi->dev, spi->irq, in adxl34x_spi_probe() 82 if (IS_ERR(ac)) in adxl34x_spi_probe() 83 return PTR_ERR(ac); in adxl34x_spi_probe() 85 spi_set_drvdata(spi, ac); in adxl34x_spi_probe() 92 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_remove() local 94 return adxl34x_remove(ac); in adxl34x_spi_remove() 100 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_suspend() local 102 adxl34x_suspend(ac); in adxl34x_spi_suspend() 110 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_resume() local [all …]
|
D | adxl34x-i2c.c | 80 struct adxl34x *ac; in adxl34x_i2c_probe() local 90 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe() 94 if (IS_ERR(ac)) in adxl34x_i2c_probe() 95 return PTR_ERR(ac); in adxl34x_i2c_probe() 97 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe() 104 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove() local 106 return adxl34x_remove(ac); in adxl34x_i2c_remove() 112 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_suspend() local 114 adxl34x_suspend(ac); in adxl34x_i2c_suspend() 122 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_resume() local [all …]
|
/Linux-v4.19/net/ceph/ |
D | auth.c | 24 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument 28 return ceph_auth_none_init(ac); in ceph_auth_init_protocol() 30 return ceph_x_init(ac); in ceph_auth_init_protocol() 41 struct ceph_auth_client *ac; in ceph_auth_init() local 47 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init() 48 if (!ac) in ceph_auth_init() 51 mutex_init(&ac->mutex); in ceph_auth_init() 52 ac->negotiating = true; in ceph_auth_init() 54 ac->name = name; in ceph_auth_init() 56 ac->name = CEPH_AUTH_NAME_DEFAULT; in ceph_auth_init() [all …]
|
D | auth_none.c | 15 static void reset(struct ceph_auth_client *ac) in reset() argument 17 struct ceph_auth_none_info *xi = ac->private; in reset() 22 static void destroy(struct ceph_auth_client *ac) in destroy() argument 24 kfree(ac->private); in destroy() 25 ac->private = NULL; in destroy() 28 static int is_authenticated(struct ceph_auth_client *ac) in is_authenticated() argument 30 struct ceph_auth_none_info *xi = ac->private; in is_authenticated() 35 static int should_authenticate(struct ceph_auth_client *ac) in should_authenticate() argument 37 struct ceph_auth_none_info *xi = ac->private; in should_authenticate() 42 static int ceph_auth_none_build_authorizer(struct ceph_auth_client *ac, in ceph_auth_none_build_authorizer() argument [all …]
|
D | auth_x.c | 20 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed); 22 static int ceph_x_is_authenticated(struct ceph_auth_client *ac) in ceph_x_is_authenticated() argument 24 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated() 27 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated() 29 ac->want_keys, need, xi->have_keys); in ceph_x_is_authenticated() 30 return (ac->want_keys & xi->have_keys) == ac->want_keys; in ceph_x_is_authenticated() 33 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument 35 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate() 38 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate() 40 ac->want_keys, need, xi->have_keys); in ceph_x_should_authenticate() [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | ac.c | 118 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument 122 if (!ac) in acpi_ac_get_state() 125 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state() 126 &ac->state); in acpi_ac_get_state() 130 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state() 144 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local 146 if (!ac) in get_ac_property() 149 if (acpi_ac_get_state(ac)) in get_ac_property() 154 val->intval = ac->state; in get_ac_property() 175 struct acpi_ac *ac = seq->private; in acpi_ac_seq_show() local [all …]
|
/Linux-v4.19/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 200 static inline void q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, in q6asm_add_hdr() argument 205 hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 206 hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 209 hdr->token = ac->session; in q6asm_add_hdr() 212 static int q6asm_apr_send_session_pkt(struct q6asm *a, struct audio_client *ac, in q6asm_apr_send_session_pkt() argument 218 mutex_lock(&ac->cmd_lock); in q6asm_apr_send_session_pkt() 219 ac->result.opcode = 0; in q6asm_apr_send_session_pkt() 220 ac->result.status = 0; in q6asm_apr_send_session_pkt() 227 (ac->result.opcode == hdr->opcode) || in q6asm_apr_send_session_pkt() 228 (ac->result.opcode == rsp_opcode), in q6asm_apr_send_session_pkt() [all …]
|
D | q6asm.h | 41 void q6asm_audio_client_free(struct audio_client *ac); 42 int q6asm_write_async(struct audio_client *ac, uint32_t len, uint32_t msw_ts, 44 int q6asm_open_write(struct audio_client *ac, uint32_t format, 47 int q6asm_open_read(struct audio_client *ac, uint32_t format, 49 int q6asm_enc_cfg_blk_pcm_format_support(struct audio_client *ac, 51 int q6asm_read(struct audio_client *ac); 53 int q6asm_media_format_block_multi_ch_pcm(struct audio_client *ac, 57 int q6asm_run(struct audio_client *ac, uint32_t flags, uint32_t msw_ts, 59 int q6asm_run_nowait(struct audio_client *ac, uint32_t flags, uint32_t msw_ts, 61 int q6asm_cmd(struct audio_client *ac, int cmd); [all …]
|
/Linux-v4.19/fs/afs/ |
D | rotate.c | 41 fc->ac.error = SHRT_MAX; in afs_begin_vnode_operation() 44 fc->ac.error = -EINTR; in afs_begin_vnode_operation() 83 fc->ac.error = -ESTALE; in afs_start_fs_iteration() 130 fc->ac.error = -ERESTARTSYS; in afs_sleep_and_retry() 149 fc->ac.index, fc->ac.start, in afs_select_fileserver() 150 fc->ac.error, fc->ac.abort_code); in afs_select_fileserver() 158 switch (fc->ac.error) { in afs_select_fileserver() 166 _leave(" = f [okay/local %d]", fc->ac.error); in afs_select_fileserver() 173 switch (fc->ac.abort_code) { in afs_select_fileserver() 181 fc->ac.error = -EREMOTEIO; in afs_select_fileserver() [all …]
|
D | addr_list.c | 310 bool afs_iterate_addresses(struct afs_addr_cursor *ac) in afs_iterate_addresses() argument 312 _enter("%hu+%hd", ac->start, (short)ac->index); in afs_iterate_addresses() 314 if (!ac->alist) in afs_iterate_addresses() 317 if (ac->begun) { in afs_iterate_addresses() 318 ac->index++; in afs_iterate_addresses() 319 if (ac->index == ac->alist->nr_addrs) in afs_iterate_addresses() 320 ac->index = 0; in afs_iterate_addresses() 322 if (ac->index == ac->start) { in afs_iterate_addresses() 323 ac->error = -EDESTADDRREQ; in afs_iterate_addresses() 328 ac->begun = true; in afs_iterate_addresses() [all …]
|
D | volume.c | 77 struct afs_addr_cursor ac; in afs_vl_lookup_vldb() local 81 ret = afs_set_vl_cursor(&ac, cell); in afs_vl_lookup_vldb() 85 while (afs_iterate_addresses(&ac)) { in afs_vl_lookup_vldb() 86 if (!test_bit(ac.index, &ac.alist->probed)) { in afs_vl_lookup_vldb() 87 ret = afs_vl_get_capabilities(cell->net, &ac, key); in afs_vl_lookup_vldb() 90 clear_bit(ac.index, &ac.alist->yfs); in afs_vl_lookup_vldb() 91 set_bit(ac.index, &ac.alist->probed); in afs_vl_lookup_vldb() 92 ac.addr->srx_service = ret; in afs_vl_lookup_vldb() 95 set_bit(ac.index, &ac.alist->yfs); in afs_vl_lookup_vldb() 96 set_bit(ac.index, &ac.alist->probed); in afs_vl_lookup_vldb() [all …]
|
D | server.c | 249 struct afs_addr_cursor ac; in afs_vl_lookup_addrs() local 253 ret = afs_set_vl_cursor(&ac, cell); in afs_vl_lookup_addrs() 257 while (afs_iterate_addresses(&ac)) { in afs_vl_lookup_addrs() 258 if (test_bit(ac.index, &ac.alist->yfs)) in afs_vl_lookup_addrs() 259 alist = afs_yfsvl_get_endpoints(cell->net, &ac, key, uuid); in afs_vl_lookup_addrs() 261 alist = afs_vl_get_addrs_u(cell->net, &ac, key, uuid); in afs_vl_lookup_addrs() 262 switch (ac.error) { in afs_vl_lookup_addrs() 264 afs_end_cursor(&ac); in afs_vl_lookup_addrs() 267 ac.error = afs_abort_to_error(ac.abort_code); in afs_vl_lookup_addrs() 277 ac.error = -EIO; in afs_vl_lookup_addrs() [all …]
|
/Linux-v4.19/drivers/s390/crypto/ |
D | ap_card.c | 24 struct ap_card *ac = to_ap_card(dev); in hwtype_show() local 26 return snprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show() 34 struct ap_card *ac = to_ap_card(dev); in raw_hwtype_show() local 36 return snprintf(buf, PAGE_SIZE, "%d\n", ac->raw_hwtype); in raw_hwtype_show() 44 struct ap_card *ac = to_ap_card(dev); in depth_show() local 46 return snprintf(buf, PAGE_SIZE, "%d\n", ac->queue_depth); in depth_show() 54 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local 56 return snprintf(buf, PAGE_SIZE, "0x%08X\n", ac->functions); in ap_functions_show() 65 struct ap_card *ac = to_ap_card(dev); in request_count_show() local 70 req_cnt = atomic_read(&ac->total_request_count); in request_count_show() [all …]
|
D | zcrypt_cex4.c | 100 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex4_card_probe() local 107 zc->card = ac; in zcrypt_cex4_card_probe() 108 ac->private = zc; in zcrypt_cex4_card_probe() 109 if (ap_test_bit(&ac->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_card_probe() 110 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe() 115 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX5) { in zcrypt_cex4_card_probe() 127 if (ap_test_bit(&ac->functions, AP_FUNC_MEX4K) && in zcrypt_cex4_card_probe() 128 ap_test_bit(&ac->functions, AP_FUNC_CRT4K)) { in zcrypt_cex4_card_probe() 137 } else if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_card_probe() 138 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX4) { in zcrypt_cex4_card_probe() [all …]
|
/Linux-v4.19/drivers/media/pci/tw686x/ |
D | tw686x-audio.c | 41 struct tw686x_audio_channel *ac = &dev->audio_channels[ch]; in tw686x_audio_irq() local 48 spin_lock_irqsave(&ac->lock, flags); in tw686x_audio_irq() 51 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq() 52 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() 56 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() 57 next = list_first_entry(&ac->buf_list, in tw686x_audio_irq() 59 list_move_tail(&next->list, &ac->buf_list); in tw686x_audio_irq() 60 done = ac->curr_bufs[!pb]; in tw686x_audio_irq() 61 ac->curr_bufs[pb] = next; in tw686x_audio_irq() 63 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() [all …]
|
/Linux-v4.19/include/linux/ceph/ |
D | auth.h | 41 int (*is_authenticated)(struct ceph_auth_client *ac); 47 int (*should_authenticate)(struct ceph_auth_client *ac); 54 int (*build_request)(struct ceph_auth_client *ac, void *buf, void *end); 55 int (*handle_reply)(struct ceph_auth_client *ac, int result, 62 int (*create_authorizer)(struct ceph_auth_client *ac, int peer_type, 65 int (*update_authorizer)(struct ceph_auth_client *ac, int peer_type, 67 int (*add_authorizer_challenge)(struct ceph_auth_client *ac, 71 int (*verify_authorizer_reply)(struct ceph_auth_client *ac, 73 void (*invalidate_authorizer)(struct ceph_auth_client *ac, 77 void (*reset)(struct ceph_auth_client *ac); [all …]
|
/Linux-v4.19/fs/ext4/ |
D | mballoc.c | 1634 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument 1637 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found() 1640 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found() 1641 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found() 1643 ac->ac_b_ex.fe_len = min(ac->ac_b_ex.fe_len, ac->ac_g_ex.fe_len); in ext4_mb_use_best_found() 1644 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found() 1645 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found() 1649 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found() 1651 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found() 1652 ac->ac_tail = ret & 0xffff; in ext4_mb_use_best_found() [all …]
|
/Linux-v4.19/fs/ocfs2/ |
D | suballoc.c | 107 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, 132 struct ocfs2_alloc_context **ac); 134 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument 136 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource() 139 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource() 145 ac->ac_inode = NULL; in ocfs2_free_ac_resource() 147 brelse(ac->ac_bh); in ocfs2_free_ac_resource() 148 ac->ac_bh = NULL; in ocfs2_free_ac_resource() 149 ac->ac_resv = NULL; in ocfs2_free_ac_resource() 150 kfree(ac->ac_find_loc_priv); in ocfs2_free_ac_resource() [all …]
|
D | suballoc.h | 66 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac); 67 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument 69 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left() 79 struct ocfs2_alloc_context **ac); 82 struct ocfs2_alloc_context **ac); 84 struct ocfs2_alloc_context **ac); 87 struct ocfs2_alloc_context **ac); 106 struct ocfs2_alloc_context *ac, 115 struct ocfs2_alloc_context *ac, 120 struct ocfs2_alloc_context *ac, [all …]
|
D | localalloc.c | 67 struct ocfs2_alloc_context **ac, 73 struct ocfs2_alloc_context *ac); 627 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument 634 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits() 702 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits() 704 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits() 705 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits() 707 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits() 716 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits() 726 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument [all …]
|
/Linux-v4.19/kernel/ |
D | acct.c | 415 static void fill_ac(acct_t *ac) in fill_ac() argument 425 memset(ac, 0, sizeof(acct_t)); in fill_ac() 427 ac->ac_version = ACCT_VERSION | ACCT_BYTEORDER; in fill_ac() 428 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac() 436 ac->ac_etime = encode_float(elapsed); in fill_ac() 438 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac() 446 ac->ac_etime_hi = etime >> 16; in fill_ac() 447 ac->ac_etime_lo = (u16) etime; in fill_ac() 451 ac->ac_btime = get_seconds() - elapsed; in fill_ac() 453 ac->ac_ahz = AHZ; in fill_ac() [all …]
|
/Linux-v4.19/Documentation/media/v4l-drivers/ |
D | cx88-cardlist.rst | 77 - 18ac:db00 85 - 18ac:d810, 18ac:d800 101 - 18ac:db10, 18ac:db11 129 - 18ac:d820 141 - 18ac:d500 193 - 18ac:db50, 18ac:db54 201 - 18ac:db40, 18ac:db44 253 - 18ac:d530 273 - 18ac:db30 277 - 18ac:d610 [all …]
|
/Linux-v4.19/drivers/crypto/axis/ |
D | artpec6_crypto.c | 454 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_busy() local 455 int fifo_count = ac->pending_count; in artpec6_crypto_busy() 462 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_submit() local 465 spin_lock_bh(&ac->queue_lock); in artpec6_crypto_submit() 468 list_add_tail(&req->list, &ac->pending); in artpec6_crypto_submit() 472 list_add_tail(&req->list, &ac->queue); in artpec6_crypto_submit() 477 spin_unlock_bh(&ac->queue_lock); in artpec6_crypto_submit() 484 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_start_dma() local 485 enum artpec6_crypto_variant variant = ac->variant; in artpec6_crypto_start_dma() 486 void __iomem *base = ac->base; in artpec6_crypto_start_dma() [all …]
|
/Linux-v4.19/scripts/dtc/libfdt/ |
D | fdt_addresses.c | 60 const fdt32_t *ac; in fdt_address_cells() local 64 ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len); in fdt_address_cells() 65 if (!ac) in fdt_address_cells() 68 if (len != sizeof(*ac)) in fdt_address_cells() 71 val = fdt32_to_cpu(*ac); in fdt_address_cells()
|