Home
last modified time | relevance | path

Searched refs:ac (Results 1 – 25 of 154) sorted by relevance

1234567

/linux-2.6.39/drivers/input/misc/
Dadxl34x.c181 #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 …]
Dadxl34x-spi.c70 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 = dev_get_drvdata(&spi->dev); in adxl34x_spi_remove() local
94 return adxl34x_remove(ac); in adxl34x_spi_remove()
101 struct adxl34x *ac = dev_get_drvdata(&spi->dev); in adxl34x_spi_suspend() local
103 adxl34x_suspend(ac); in adxl34x_spi_suspend()
111 struct adxl34x *ac = dev_get_drvdata(&spi->dev); in adxl34x_spi_resume() local
[all …]
Dadxl34x-i2c.c79 struct adxl34x *ac; in adxl34x_i2c_probe() local
89 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe()
93 if (IS_ERR(ac)) in adxl34x_i2c_probe()
94 return PTR_ERR(ac); in adxl34x_i2c_probe()
96 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe()
103 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove() local
105 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 …]
Dadxl34x.h23 void adxl34x_suspend(struct adxl34x *ac);
24 void adxl34x_resume(struct adxl34x *ac);
28 int adxl34x_remove(struct adxl34x *ac);
/linux-2.6.39/net/ceph/
Dauth.c23 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument
27 return ceph_auth_none_init(ac); in ceph_auth_init_protocol()
29 return ceph_x_init(ac); in ceph_auth_init_protocol()
40 struct ceph_auth_client *ac; in ceph_auth_init() local
46 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init()
47 if (!ac) in ceph_auth_init()
50 ac->negotiating = true; in ceph_auth_init()
52 ac->name = name; in ceph_auth_init()
54 ac->name = CEPH_AUTH_NAME_DEFAULT; in ceph_auth_init()
55 dout("auth_init name %s\n", ac->name); in ceph_auth_init()
[all …]
Dauth_none.c14 static void reset(struct ceph_auth_client *ac) in reset() argument
16 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()
46 static int handle_reply(struct ceph_auth_client *ac, int result, in handle_reply() argument
[all …]
Dauth_x.c18 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed);
20 static int ceph_x_is_authenticated(struct ceph_auth_client *ac) in ceph_x_is_authenticated() argument
22 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated()
25 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated()
27 ac->want_keys, need, xi->have_keys); in ceph_x_is_authenticated()
28 return (ac->want_keys & xi->have_keys) == ac->want_keys; in ceph_x_is_authenticated()
31 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument
33 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate()
36 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate()
38 ac->want_keys, need, xi->have_keys); in ceph_x_should_authenticate()
[all …]
/linux-2.6.39/drivers/acpi/
Dac.c108 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument
113 if (!ac) in acpi_ac_get_state()
116 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, &ac->state); in acpi_ac_get_state()
119 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state()
133 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local
135 if (!ac) in get_ac_property()
138 if (acpi_ac_get_state(ac)) in get_ac_property()
143 val->intval = ac->state; in get_ac_property()
164 struct acpi_ac *ac = seq->private; in acpi_ac_seq_show() local
167 if (!ac) in acpi_ac_seq_show()
[all …]
/linux-2.6.39/fs/ext4/
Dmballoc.c1577 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument
1580 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found()
1583 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found()
1584 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found()
1586 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()
1587 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
1588 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found()
1592 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
1594 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found()
1595 ac->ac_tail = ret & 0xffff; in ext4_mb_use_best_found()
[all …]
/linux-2.6.39/include/linux/ceph/
Dauth.h24 int (*is_authenticated)(struct ceph_auth_client *ac);
30 int (*should_authenticate)(struct ceph_auth_client *ac);
37 int (*build_request)(struct ceph_auth_client *ac, void *buf, void *end);
38 int (*handle_reply)(struct ceph_auth_client *ac, int result,
45 int (*create_authorizer)(struct ceph_auth_client *ac, int peer_type,
49 int (*verify_authorizer_reply)(struct ceph_auth_client *ac,
51 void (*destroy_authorizer)(struct ceph_auth_client *ac,
53 void (*invalidate_authorizer)(struct ceph_auth_client *ac,
57 void (*reset)(struct ceph_auth_client *ac);
59 void (*destroy)(struct ceph_auth_client *ac);
[all …]
/linux-2.6.39/fs/ocfs2/
Dsuballoc.c109 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac,
140 struct ocfs2_alloc_context **ac);
142 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument
144 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource()
147 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource()
153 ac->ac_inode = NULL; in ocfs2_free_ac_resource()
155 brelse(ac->ac_bh); in ocfs2_free_ac_resource()
156 ac->ac_bh = NULL; in ocfs2_free_ac_resource()
157 ac->ac_resv = NULL; in ocfs2_free_ac_resource()
158 if (ac->ac_find_loc_priv) { in ocfs2_free_ac_resource()
[all …]
Dsuballoc.h66 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);
90 struct ocfs2_alloc_context *ac,
99 struct ocfs2_alloc_context *ac,
104 struct ocfs2_alloc_context *ac,
[all …]
Dlocalalloc.c67 struct ocfs2_alloc_context **ac,
73 struct ocfs2_alloc_context *ac);
630 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument
637 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
707 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits()
709 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits()
710 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits()
712 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits()
721 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits()
731 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument
[all …]
/linux-2.6.39/kernel/
Dacct.c478 acct_t ac; in do_acct_process() local
501 memset((caddr_t)&ac, 0, sizeof(acct_t)); in do_acct_process()
503 ac.ac_version = ACCT_VERSION | ACCT_BYTEORDER; in do_acct_process()
504 strlcpy(ac.ac_comm, current->comm, sizeof(ac.ac_comm)); in do_acct_process()
514 ac.ac_etime = encode_float(elapsed); in do_acct_process()
516 ac.ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in do_acct_process()
523 ac.ac_etime_hi = etime >> 16; in do_acct_process()
524 ac.ac_etime_lo = (u16) etime; in do_acct_process()
528 ac.ac_btime = get_seconds() - elapsed; in do_acct_process()
530 ac.ac_uid = orig_cred->uid; in do_acct_process()
[all …]
/linux-2.6.39/Documentation/video4linux/
DCARDLIST.cx8816 15 -> DViCO FusionHDTV DVB-T1 [18ac:db00]
18 17 -> DViCO FusionHDTV 3 Gold-Q [18ac:d810,18ac:d800]
22 21 -> DViCO FusionHDTV DVB-T Plus [18ac:db10,18ac:db11]
29 28 -> DViCO FusionHDTV 3 Gold-T [18ac:d820]
32 31 -> DViCO FusionHDTV 5 Gold [18ac:d500]
45 44 -> DViCO FusionHDTV DVB-T Dual Digital [18ac:db50,18ac:db54]
47 46 -> DViCO FusionHDTV DVB-T Hybrid [18ac:db40,18ac:db44]
60 59 -> DViCO FusionHDTV 5 PCI nano [18ac:d530]
65 64 -> DViCO FusionHDTV DVB-T PRO [18ac:db30]
66 65 -> DViCO FusionHDTV 7 Gold [18ac:d610]
[all …]
/linux-2.6.39/drivers/net/wireless/iwlegacy/
Diwl-helpers.h103 iwl_legacy_set_swq_id(struct iwl_tx_queue *txq, u8 ac, u8 hwq) in iwl_legacy_set_swq_id() argument
105 BUG_ON(ac > 3); /* only have 2 bits */ in iwl_legacy_set_swq_id()
108 txq->swq_id = (hwq << 2) | ac; in iwl_legacy_set_swq_id()
115 u8 ac = queue & 3; in iwl_legacy_wake_queue() local
119 if (atomic_dec_return(&priv->queue_stop_count[ac]) <= 0) in iwl_legacy_wake_queue()
120 ieee80211_wake_queue(priv->hw, ac); in iwl_legacy_wake_queue()
127 u8 ac = queue & 3; in iwl_legacy_stop_queue() local
131 if (atomic_inc_return(&priv->queue_stop_count[ac]) > 0) in iwl_legacy_stop_queue()
132 ieee80211_stop_queue(priv->hw, ac); in iwl_legacy_stop_queue()
/linux-2.6.39/drivers/net/wireless/iwlwifi/
Diwl-helpers.h102 static inline void iwl_set_swq_id(struct iwl_tx_queue *txq, u8 ac, u8 hwq) in iwl_set_swq_id() argument
104 BUG_ON(ac > 3); /* only have 2 bits */ in iwl_set_swq_id()
107 txq->swq_id = (hwq << 2) | ac; in iwl_set_swq_id()
114 u8 ac = queue & 3; in iwl_wake_queue() local
118 if (atomic_dec_return(&priv->queue_stop_count[ac]) <= 0) in iwl_wake_queue()
119 ieee80211_wake_queue(priv->hw, ac); in iwl_wake_queue()
126 u8 ac = queue & 3; in iwl_stop_queue() local
130 if (atomic_inc_return(&priv->queue_stop_count[ac]) > 0) in iwl_stop_queue()
131 ieee80211_stop_queue(priv->hw, ac); in iwl_stop_queue()
/linux-2.6.39/mm/
Dslab.c993 struct array_cache *ac, int node) in __drain_alien_cache() argument
997 if (ac->avail) { in __drain_alien_cache()
1005 transfer_objects(rl3->shared, ac, ac->limit); in __drain_alien_cache()
1007 free_block(cachep, ac->entry, ac->avail, node); in __drain_alien_cache()
1008 ac->avail = 0; in __drain_alien_cache()
1021 struct array_cache *ac = l3->alien[node]; in reap_alien() local
1023 if (ac && ac->avail && spin_trylock_irq(&ac->lock)) { in reap_alien()
1024 __drain_alien_cache(cachep, ac, node); in reap_alien()
1025 spin_unlock_irq(&ac->lock); in reap_alien()
1034 struct array_cache *ac; in drain_alien_cache() local
[all …]
/linux-2.6.39/drivers/power/
Dpcf50633-charger.c38 struct power_supply ac; member
281 power_supply_changed(&mbc->ac); in pcf50633_mbc_irq_handler()
333 struct pcf50633_mbc *mbc = container_of(psy, struct pcf50633_mbc, ac); in ac_get_property()
405 mbc->ac.name = "ac"; in pcf50633_mbc_probe()
406 mbc->ac.type = POWER_SUPPLY_TYPE_MAINS; in pcf50633_mbc_probe()
407 mbc->ac.properties = power_props; in pcf50633_mbc_probe()
408 mbc->ac.num_properties = ARRAY_SIZE(power_props); in pcf50633_mbc_probe()
409 mbc->ac.get_property = ac_get_property; in pcf50633_mbc_probe()
410 mbc->ac.supplied_to = mbc->pcf->pdata->batteries; in pcf50633_mbc_probe()
411 mbc->ac.num_supplicants = mbc->pcf->pdata->num_batteries; in pcf50633_mbc_probe()
[all …]
Dwm8350_power.c236 power_supply_changed(&power->ac); in wm8350_charger_handler()
452 struct power_supply *ac = &power->ac; in wm8350_power_probe() local
455 ac->name = "wm8350-ac"; in wm8350_power_probe()
456 ac->type = POWER_SUPPLY_TYPE_MAINS; in wm8350_power_probe()
457 ac->properties = wm8350_ac_props; in wm8350_power_probe()
458 ac->num_properties = ARRAY_SIZE(wm8350_ac_props); in wm8350_power_probe()
459 ac->get_property = wm8350_ac_get_prop; in wm8350_power_probe()
460 ret = power_supply_register(&pdev->dev, ac); in wm8350_power_probe()
499 power_supply_unregister(ac); in wm8350_power_probe()
512 power_supply_unregister(&power->ac); in wm8350_power_remove()
/linux-2.6.39/include/linux/
Dtransport_class.h57 struct attribute_container ac; member
62 container_of(x, struct transport_container, ac)
86 return attribute_container_register(&tc->ac); in transport_container_register()
91 if (unlikely(attribute_container_unregister(&tc->ac))) in transport_container_unregister()
/linux-2.6.39/drivers/scsi/
Draid_class.c49 container_of(acont, struct transport_container, ac); \
54 struct attribute_container *ac = \
56 ac_to_raid_internal(ac); \
227 attribute_container_find_class_device(&r->raid_attrs.ac, in raid_component_add()
273 i->r.raid_attrs.ac.class = &raid_class.class; in raid_class_attach()
274 i->r.raid_attrs.ac.match = raid_match; in raid_class_attach()
275 i->r.raid_attrs.ac.attrs = &i->attrs[0]; in raid_class_attach()
277 attribute_container_register(&i->r.raid_attrs.ac); in raid_class_attach()
295 BUG_ON(attribute_container_unregister(&i->r.raid_attrs.ac)); in raid_class_release()
Dscsi_transport_srp.c163 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_rport_match()
167 return &i->rport_attr_cont.ac == cont; in srp_rport_match()
181 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_host_match()
185 return &i->t.host_attrs.ac == cont; in srp_host_match()
318 i->t.host_attrs.ac.attrs = &i->host_attrs[0]; in srp_attach_transport()
319 i->t.host_attrs.ac.class = &srp_host_class.class; in srp_attach_transport()
320 i->t.host_attrs.ac.match = srp_host_match; in srp_attach_transport()
324 i->rport_attr_cont.ac.attrs = &i->rport_attrs[0]; in srp_attach_transport()
325 i->rport_attr_cont.ac.class = &srp_rport_class.class; in srp_attach_transport()
326 i->rport_attr_cont.ac.match = srp_rport_match; in srp_attach_transport()
/linux-2.6.39/include/trace/events/
Dext4.h520 TP_PROTO(struct ext4_allocation_context *ac,
523 TP_ARGS(ac, pa),
535 __entry->dev = ac->ac_sb->s_dev;
536 __entry->ino = ac->ac_inode->i_ino;
550 TP_PROTO(struct ext4_allocation_context *ac,
553 TP_ARGS(ac, pa)
558 TP_PROTO(struct ext4_allocation_context *ac,
561 TP_ARGS(ac, pa)
877 TP_PROTO(struct ext4_allocation_context *ac),
879 TP_ARGS(ac),
[all …]
/linux-2.6.39/drivers/hid/
Dhid-wacom.c40 struct power_supply ac; member
89 struct wacom_data *wdata = container_of(psy, struct wacom_data, ac); in wacom_ac_get_property()
363 wdata->ac.properties = wacom_ac_props; in wacom_probe()
364 wdata->ac.num_properties = ARRAY_SIZE(wacom_ac_props); in wacom_probe()
365 wdata->ac.get_property = wacom_ac_get_property; in wacom_probe()
366 wdata->ac.name = "wacom_ac"; in wacom_probe()
367 wdata->ac.type = POWER_SUPPLY_TYPE_MAINS; in wacom_probe()
368 wdata->ac.use_for_apm = 0; in wacom_probe()
370 ret = power_supply_register(&hdev->dev, &wdata->ac); in wacom_probe()
433 power_supply_unregister(&wdata->ac); in wacom_remove()

1234567