| /linux/net/ceph/ |
| H A D | auth.c | 24 static int init_protocol(struct ceph_auth_client *ac, int proto) in init_protocol() argument 30 return ceph_auth_none_init(ac); in init_protocol() 32 return ceph_x_init(ac); in init_protocol() 39 void ceph_auth_set_global_id(struct ceph_auth_client *ac, u64 global_id) in ceph_auth_set_global_id() argument 46 if (ac->global_id && global_id != ac->global_id) in ceph_auth_set_global_id() 47 pr_err("global_id changed from %llu to %llu\n", ac->global_id, in ceph_auth_set_global_id() 50 ac->global_id = global_id; in ceph_auth_set_global_id() 60 struct ceph_auth_client *ac; in ceph_auth_init() local 62 ac = kzalloc_obj(*ac, GFP_NOFS); in ceph_auth_init() 63 if (!ac) in ceph_auth_init() [all …]
|
| H A D | auth_x.c | 36 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed); 38 static int ceph_x_is_authenticated(struct ceph_auth_client *ac) in ceph_x_is_authenticated() argument 40 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated() 44 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated() 45 missing = ac->want_keys & ~xi->have_keys; in ceph_x_is_authenticated() 48 ac->want_keys, xi->have_keys, missing, !missing); in ceph_x_is_authenticated() 52 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument 54 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate() 57 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate() 59 ac->want_keys, xi->have_keys, need, !!need); in ceph_x_should_authenticate() [all …]
|
| H A 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 …]
|
| /linux/drivers/power/supply/ |
| H A D | surface_charger.c | 3 * AC driver for 7th-generation Microsoft Surface devices via Surface System 67 static int spwr_ac_update_unlocked(struct spwr_ac_device *ac) in spwr_ac_update_unlocked() argument 69 __le32 old = ac->state; in spwr_ac_update_unlocked() 72 lockdep_assert_held(&ac->lock); in spwr_ac_update_unlocked() 74 status = ssam_retry(ssam_bat_get_psrc, ac->sdev, &ac->state); in spwr_ac_update_unlocked() 78 return old != ac->state; in spwr_ac_update_unlocked() 81 static int spwr_ac_update(struct spwr_ac_device *ac) in spwr_ac_update() argument 85 mutex_lock(&ac->lock); in spwr_ac_update() 86 status = spwr_ac_update_unlocked(ac); in spwr_ac_update() 87 mutex_unlock(&ac->lock); in spwr_ac_update() [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | ap_card.c | 24 struct ap_card *ac = to_ap_card(dev); in hwtype_show() local 26 return sysfs_emit(buf, "%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 sysfs_emit(buf, "%d\n", ac->hwinfo.at); in raw_hwtype_show() 44 struct ap_card *ac = to_ap_card(dev); in depth_show() local 46 return sysfs_emit(buf, "%d\n", ac->hwinfo.qd + 1); in depth_show() 54 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local 56 return sysfs_emit(buf, "0x%08X\n", ac->hwinfo.fac); in ap_functions_show() 65 struct ap_card *ac = to_ap_card(dev); in request_count_show() local 70 req_cnt = atomic64_read(&ac->total_request_count); in request_count_show() [all …]
|
| H A D | zcrypt_cex4.c | 25 #define CEX4A_MIN_MOD_SIZE 1 /* 8 bits */ 83 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local 88 cca_get_info(ac->id, AUTOSEL_DOM, &ci, 0); in cca_serialnr_show() 126 char hexbuf[2 * 16 + 1]; in cca_mkvps_show() 135 if (ci.new_aes_mk_state >= '1' && ci.new_aes_mk_state <= '3') { in cca_mkvps_show() 138 new_state[ci.new_aes_mk_state - '1'], in cca_mkvps_show() 144 if (ci.cur_aes_mk_state >= '1' && ci.cur_aes_mk_state <= '2') { in cca_mkvps_show() 147 cao_state[ci.cur_aes_mk_state - '1'], in cca_mkvps_show() 153 if (ci.old_aes_mk_state >= '1' && ci.old_aes_mk_state <= '2') { in cca_mkvps_show() 156 cao_state[ci.old_aes_mk_state - '1'], in cca_mkvps_show() [all …]
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 102 * [ group 0 bitmap][ group 0 buddy] [group 1][ group 1]... 135 * 1) Array of largest free order xarrays (sbi->s_mb_largest_free_orders) 150 * average fragment size >= 2^i and < 2^(i+1). The average fragment size 166 * in the data structure (1) above where largest_free_order = order of the 169 * lookup in O(1) time. 174 * size group lists (data structure 2) in O(1) time. 183 * suitable block group in O(1) time and results in faster allocation at the 280 * 1) if buddy is referenced, it's already initialized 426 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac); 428 static int ext4_mb_scan_group(struct ext4_allocation_context *ac, [all …]
|
| /linux/drivers/media/pci/tw686x/ |
| H A D | tw686x-audio.c | 38 struct tw686x_audio_channel *ac = &dev->audio_channels[ch]; in tw686x_audio_irq() local 45 spin_lock_irqsave(&ac->lock, flags); in tw686x_audio_irq() 48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq() 49 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() 53 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() 54 next = list_first_entry(&ac->buf_list, in tw686x_audio_irq() 56 list_move_tail(&next->list, &ac->buf_list); in tw686x_audio_irq() 57 done = ac->curr_bufs[!pb]; in tw686x_audio_irq() 58 ac->curr_bufs[pb] = next; in tw686x_audio_irq() 60 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() [all …]
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6asm.c | 261 struct audio_client *session[MAX_SESSIONS + 1]; 273 /* idx:1 out port, 0: in port */ 282 static inline void q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, in q6asm_add_hdr() argument 287 hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 288 hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 291 hdr->token = ac->session; in q6asm_add_hdr() 294 static int q6asm_apr_send_session_pkt(struct q6asm *a, struct audio_client *ac, in q6asm_apr_send_session_pkt() argument 300 mutex_lock(&ac->cmd_lock); in q6asm_apr_send_session_pkt() 301 ac->result.opcode = 0; in q6asm_apr_send_session_pkt() 302 ac->result.status = 0; in q6asm_apr_send_session_pkt() [all …]
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_en.c | 55 if (apc && apc->ac && apc->ac->gdma_dev && in mana_en_need_log() 56 apc->ac->gdma_dev->gdma_context) in mana_en_need_log() 57 return mana_need_log(apc->ac->gdma_dev->gdma_context, err); in mana_en_need_log() 106 struct mana_context *ac; in mana_link_state_handle() local 112 ac = container_of(w, struct mana_context, link_change_work); in mana_link_state_handle() 116 link_event = READ_ONCE(ac->link_event); in mana_link_state_handle() 126 for (i = 0; i < ac->num_ports; i++) { in mana_link_state_handle() 127 ndev = ac->ports[i]; in mana_link_state_handle() 188 int hsg = 1; /* num of SGEs of linear part */ in mana_map_skb() 189 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_map_skb() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-devices-platform-ACPI-TAD | 11 BIT(0): AC wakeup implemented if set 12 BIT(1): DC wakeup implemented if set 16 BIT(5): The AC timer wakes up from S4 if set 17 BIT(6): The AC timer wakes up from S5 if set 28 (RW) The AC alarm timer value. 30 Reads return the current AC alarm timer value in seconds or 31 "disabled", if the AC alarm is not set to wake up the system. 33 Write a new AC alarm timer value in seconds or "disabled" to it 34 to set the AC alarm timer or to disable it, respectively. 36 If the AC alarm timer is set through this attribute and it [all …]
|
| /linux/fs/ocfs2/ |
| H A D | suballoc.h | 28 #define OCFS2_AC_USE_LOCAL 1 51 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac); 52 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument 54 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left() 64 struct ocfs2_alloc_context **ac); 67 struct ocfs2_alloc_context **ac); 69 struct ocfs2_alloc_context **ac); 72 struct ocfs2_alloc_context **ac); 95 struct ocfs2_alloc_context *ac, 104 struct ocfs2_alloc_context *ac, [all …]
|
| H A D | localalloc.c | 51 struct ocfs2_alloc_context **ac, 57 struct ocfs2_alloc_context *ac); 115 * than 16K and also 1k blocksize with 4k cluster size. in ocfs2_la_default_mb() 158 gd_mult = gd_mult >> 1; in ocfs2_la_default_mb() 190 if (requested_mb == -1) { in ocfs2_la_set_sizes() 261 ret = 1; in ocfs2_alloc_should_use_local() 284 osb->local_alloc_bits, (osb->bitmap_cpg - 1)); in ocfs2_load_local_alloc() 410 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_shutdown_local_alloc() 458 ocfs2_inode_unlock(main_bm_inode, 1); in ocfs2_shutdown_local_alloc() 566 status = ocfs2_inode_lock(main_bm_inode, &main_bm_bh, 1); in ocfs2_complete_local_alloc_recovery() [all …]
|
| /linux/lib/ |
| H A D | base64.c | 27 * returning -1 if the character is invalid. 29 * ch_62 maps to 62, ch_63 maps to 63, and other characters return -1 35 : (v) == (ch_62) ? 62 : (v) == (ch_63) ? 63 : -1 42 #define INIT_2(v, ...) INIT_1(v, __VA_ARGS__), INIT_1((v) + 1, __VA_ARGS__) 49 [0 ... 0x1f] = -1, \ 53 [0x80 ... 0xff] = -1 } 82 u32 ac = 0; in base64_encode() local 87 ac = src[0] << 16 | src[1] << 8 | src[2]; in base64_encode() 88 *cp++ = base64_table[ac >> 18]; in base64_encode() 89 *cp++ = base64_table[(ac >> 12) & 0x3f]; in base64_encode() [all …]
|
| /linux/scripts/ |
| H A D | patch-kernel | 11 # scripts/patch-kernel . .. -ac 12 # Get the latest Linux kernel and patch it with the latest ac patch 15 # scripts/patch-kernel . .. 2.4.9 -ac 16 # Gets 2.4.9 with latest ac patches 18 # Gets 2.4.9 with ac patch ac11 20 # ac to ac relative patches 33 # Adam Sulmicki <adam@cfar.umd.edu>, 1st January 1997. 42 # Added -ac option, use -ac or -ac9 (say) to stop at a particular version 65 sourcedir=${1-/usr/src/linux} 69 if [ "$1" = -h -o "$1" = --help -o ! -r "$sourcedir/Makefile" ]; then [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-kye.c | 30 0x0A, 0x45, 0x02, /* Usage (AC Rotate), */ 32 0x0A, 0x2F, 0x02, /* Usage (AC Zoom), */ 33 0x0A, 0x46, 0x02, /* Usage (AC Resize), */ 34 0x0A, 0x1A, 0x02, /* Usage (AC Undo), */ 35 0x0A, 0x6A, 0x02, /* Usage (AC Delete), */ 36 0x0A, 0x24, 0x02, /* Usage (AC Back), */ 37 0x0A, 0x25, 0x02, /* Usage (AC Forward), */ 39 0x25, 0x01, /* Logical Maximum (1), */ 40 0x75, 0x01, /* Report Size (1), */ 53 0x0A, 0x6A, 0x02, /* Usage (AC Delete), */ [all …]
|
| /linux/net/mac80211/ |
| H A D | sta_info.c | 134 int ac, i; in __cleanup_single_sta() local 160 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta() 161 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta() 162 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta() 163 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta() 364 int ac, tid; in sta_accumulate_removed_link_stats() local 368 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in sta_accumulate_removed_link_stats() 370 link_sta->tx_stats.packets[ac]; in sta_accumulate_removed_link_stats() 371 sta->rem_link_stats.tx_bytes += link_sta->tx_stats.bytes[ac]; in sta_accumulate_removed_link_stats() 488 ret = sta_info_move_state(sta, sta->sta_state - 1); in sta_info_free() [all …]
|
| /linux/include/linux/mmc/ |
| H A D | mmc.h | 30 /* class 1 */ 32 #define MMC_SEND_OP_COND 1 /* bcr [31:0] OCR R3 */ 34 #define MMC_SET_RELATIVE_ADDR 3 /* ac [31:16] RCA R1 */ 36 #define MMC_SLEEP_AWAKE 5 /* ac [31:16] RCA 15:flg R1b */ 37 #define MMC_SWITCH 6 /* ac [31:0] See below R1b */ 38 #define MMC_SELECT_CARD 7 /* ac [31:16] RCA R1 */ 40 #define MMC_SEND_CSD 9 /* ac [31:16] RCA R2 */ 41 #define MMC_SEND_CID 10 /* ac [31:16] RCA R2 */ 43 #define MMC_STOP_TRANSMISSION 12 /* ac R1b */ 44 #define MMC_SEND_STATUS 13 /* ac [31:16] RCA R1 */ [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | cx88-cardlist.rst | 9 :header-rows: 1 21 * - 1 79 - 18ac:db00 87 - 18ac:d810, 18ac:d800 103 - 18ac:db10, 18ac:db11 131 - 18ac:d820 143 - 18ac:d500 195 - 18ac:db50, 18ac:db54 203 - 18ac:db40, 18ac:db44 255 - 18ac:d530 [all …]
|
| /linux/include/dt-bindings/input/ |
| H A D | linux-event-codes.h | 33 #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) 52 #define EV_CNT (EV_MAX+1) 59 #define SYN_CONFIG 1 63 #define SYN_CNT (SYN_MAX+1) 71 * AC - Application Control 77 #define KEY_ESC 1 207 #define KEY_STOP 128 /* AC Stop */ 209 #define KEY_PROPS 130 /* AC Properties */ 210 #define KEY_UNDO 131 /* AC Undo */ 212 #define KEY_COPY 133 /* AC Cop [all...] |
| /linux/Documentation/devicetree/bindings/power/supply/ |
| H A D | bq24735.yaml | 21 maxItems: 1 24 description: AC adapter plug event interrupt 25 maxItems: 1 27 ti,ac-detect-gpios: 28 maxItems: 1 30 This GPIO is optionally used to read the AC adapter status. This is a Host GPIO 32 Note: for backwards compatibility reasons, the GPIO must be active on AC adapter 33 absence despite ACOK being active (high) on AC adapter presence. 68 If 'interrupts' is not specified, poll AC adapter presence with this interval (milliseconds). 81 #address-cells = <1>; [all …]
|
| H A D | ti,lp8727.yaml | 23 maxItems: 1 29 '^(ac|usb)$': 32 description: USB/AC charging parameters 36 - ac 45 0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4 = 25%, 5 = 33%, 6 = 50% 53 0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA, 66 #address-cells = <1>; 76 /* AC charger: 5% EOC and 500mA charging current */ 77 ac { 78 charger-type = "ac"; [all …]
|
| /linux/include/uapi/linux/ |
| H A D | input-event-codes.h | 33 #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) 52 #define EV_CNT (EV_MAX+1) 59 #define SYN_CONFIG 1 63 #define SYN_CNT (SYN_MAX+1) 71 * AC - Application Control 77 #define KEY_ESC 1 207 #define KEY_STOP 128 /* AC Stop */ 209 #define KEY_PROPS 130 /* AC Properties */ 210 #define KEY_UNDO 131 /* AC Undo */ 212 #define KEY_COPY 133 /* AC Copy */ [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | cs43130.txt | 24 1 = 7.5uA 31 - cirrus,ac-measure: 32 Boolean, define to enable headphone AC impedance measurement. 33 DC impedance must also be enabled for AC impedance measurement. 39 - cirrus,ac-freq: 40 Define the frequencies at which to measure HP AC impedance. 64 cirrus,ac-measure; 66 cirrus,ac-freq = /bits/ 16 <24 43 93 200 431 928 2000 4309 9283 20000>;
|
| /linux/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_rx_filter.c | 24 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_replay() local 35 ac = &ctx.cmd.rx_filter_add; in ionic_rx_filter_replay() 41 memcpy(ac, &f->cmd, sizeof(f->cmd)); in ionic_rx_filter_replay() 43 dynamic_hex_dump("cmd ", DUMP_PREFIX_OFFSET, 16, 1, in ionic_rx_filter_replay() 48 switch (le16_to_cpu(ac->match)) { in ionic_rx_filter_replay() 52 le16_to_cpu(ac->vlan.vlan)); in ionic_rx_filter_replay() 56 err, ac->mac.addr); in ionic_rx_filter_replay() 61 le16_to_cpu(ac->vlan.vlan), in ionic_rx_filter_replay() 62 ac->mac.addr); in ionic_rx_filter_replay() 128 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_save() local [all …]
|