/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 326 struct fsg_common *common; member 340 static inline int __fsg_is_set(struct fsg_common *common, in __fsg_is_set() argument 343 if (common->fsg) in __fsg_is_set() 345 ERROR(common, "common->fsg is NULL in %s at %u\n", func, line); in __fsg_is_set() 350 #define fsg_is_set(common) likely(__fsg_is_set(common, __func__, __LINE__)) argument 359 static int exception_in_progress(struct fsg_common *common) in exception_in_progress() argument 361 return common->state > FSG_STATE_IDLE; in exception_in_progress() 365 static void set_bulk_out_req_length(struct fsg_common *common, in set_bulk_out_req_length() argument 371 rem = length % common->bulk_out_maxpacket; in set_bulk_out_req_length() 373 length += common->bulk_out_maxpacket - rem; in set_bulk_out_req_length() [all …]
|
/drivers/net/wireless/ath/ |
D | key.c | 25 #define REG_READ (common->ops->read) 26 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 28 if (common->ops->enable_write_buffer) \ 29 common->ops->enable_write_buffer((_ah)); 32 if (common->ops->write_flush) \ 33 common->ops->write_flush((_ah)); 42 bool ath_hw_keyreset(struct ath_common *common, u16 entry) in ath_hw_keyreset() argument 45 void *ah = common->ah; in ath_hw_keyreset() 47 if (entry >= common->keymax) { in ath_hw_keyreset() 48 ath_err(common, "keyreset: keycache entry %u out of range\n", in ath_hw_keyreset() [all …]
|
D | ath.h | 143 void (*wakeup)(struct ath_common *common); 144 void (*restore)(struct ath_common *common); 191 static inline const struct ath_ps_ops *ath_ps_ops(struct ath_common *common) in ath_ps_ops() argument 193 return common->ps_ops; in ath_ps_ops() 196 struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, 199 bool ath_is_mybeacon(struct ath_common *common, struct ieee80211_hdr *hdr); 201 void ath_hw_setbssidmask(struct ath_common *common); 202 void ath_key_delete(struct ath_common *common, u8 hw_key_idx); 203 int ath_key_config(struct ath_common *common, 207 bool ath_hw_keyreset(struct ath_common *common, u16 entry); [all …]
|
D | hw.c | 23 #define REG_READ (common->ops->read) 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 118 void ath_hw_setbssidmask(struct ath_common *common) in ath_hw_setbssidmask() argument 120 void *ah = common->ah; in ath_hw_setbssidmask() 123 REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); in ath_hw_setbssidmask() 125 id1 |= get_unaligned_le16(common->macaddr + 4); in ath_hw_setbssidmask() 128 REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(common->bssidmask)); in ath_hw_setbssidmask() 129 REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(common->bssidmask + 4)); in ath_hw_setbssidmask() 142 void ath_hw_cycle_counters_update(struct ath_common *common) in ath_hw_cycle_counters_update() argument 145 void *ah = common->ah; in ath_hw_cycle_counters_update() [all …]
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_core.c | 27 static u8 rsi_determine_min_weight_queue(struct rsi_common *common) in rsi_determine_min_weight_queue() argument 29 struct wmm_qinfo *tx_qinfo = common->tx_qinfo; in rsi_determine_min_weight_queue() 34 q_len = skb_queue_len(&common->tx_queue[ii]); in rsi_determine_min_weight_queue() 36 common->min_weight = tx_qinfo[ii].weight; in rsi_determine_min_weight_queue() 50 static bool rsi_recalculate_weights(struct rsi_common *common) in rsi_recalculate_weights() argument 52 struct wmm_qinfo *tx_qinfo = common->tx_qinfo; in rsi_recalculate_weights() 58 q_len = skb_queue_len(&common->tx_queue[ii]); in rsi_recalculate_weights() 63 ((tx_qinfo[ii].weight > common->min_weight) ? in rsi_recalculate_weights() 64 tx_qinfo[ii].weight - common->min_weight : 0); in rsi_recalculate_weights() 89 static u32 rsi_get_num_pkts_dequeue(struct rsi_common *common, u8 q_num) in rsi_get_num_pkts_dequeue() argument [all …]
|
D | rsi_91x_mgmt.c | 211 static void rsi_set_default_parameters(struct rsi_common *common) in rsi_set_default_parameters() argument 213 common->band = IEEE80211_BAND_2GHZ; in rsi_set_default_parameters() 214 common->channel_width = BW_20MHZ; in rsi_set_default_parameters() 215 common->rts_threshold = IEEE80211_MAX_RTS_THRESHOLD; in rsi_set_default_parameters() 216 common->channel = 1; in rsi_set_default_parameters() 217 common->min_rate = 0xffff; in rsi_set_default_parameters() 218 common->fsm_state = FSM_CARD_NOT_READY; in rsi_set_default_parameters() 219 common->iface_down = true; in rsi_set_default_parameters() 220 common->endpoint = EP_2GHZ_20MHZ; in rsi_set_default_parameters() 230 static void rsi_set_contention_vals(struct rsi_common *common) in rsi_set_contention_vals() argument [all …]
|
D | rsi_91x_mac80211.c | 131 bool rsi_is_cipher_wep(struct rsi_common *common) in rsi_is_cipher_wep() argument 133 if (((common->secinfo.gtk_cipher == WLAN_CIPHER_SUITE_WEP104) || in rsi_is_cipher_wep() 134 (common->secinfo.gtk_cipher == WLAN_CIPHER_SUITE_WEP40)) && in rsi_is_cipher_wep() 135 (!common->secinfo.ptk_cipher)) in rsi_is_cipher_wep() 246 struct rsi_common *common = adapter->priv; in rsi_mac80211_tx() local 248 rsi_core_xmit(common, skb); in rsi_mac80211_tx() 262 struct rsi_common *common = adapter->priv; in rsi_mac80211_start() local 264 mutex_lock(&common->mutex); in rsi_mac80211_start() 265 common->iface_down = false; in rsi_mac80211_start() 266 mutex_unlock(&common->mutex); in rsi_mac80211_start() [all …]
|
D | rsi_91x_main.c | 68 static struct sk_buff *rsi_prepare_skb(struct rsi_common *common, in rsi_prepare_skb() argument 99 rx_params->channel = rsi_get_connected_channel(common->priv); in rsi_prepare_skb() 111 int rsi_read_pkt(struct rsi_common *common, s32 rcv_pkt_len) in rsi_read_pkt() argument 120 frame_desc = &common->rx_data_pkt[index]; in rsi_read_pkt() 130 skb = rsi_prepare_skb(common, in rsi_read_pkt() 137 rsi_indicate_pkt_to_os(common, skb); in rsi_read_pkt() 141 rsi_mgmt_pkt_recv(common, (frame_desc + offset)); in rsi_read_pkt() 167 static void rsi_tx_scheduler_thread(struct rsi_common *common) in rsi_tx_scheduler_thread() argument 169 struct rsi_hw *adapter = common->priv; in rsi_tx_scheduler_thread() 175 rsi_wait_event(&common->tx_thread.event, timeout); in rsi_tx_scheduler_thread() [all …]
|
D | rsi_91x_debugfs.c | 29 struct rsi_common *common = seq->private; in rsi_sdio_stats_read() local 30 struct rsi_hw *adapter = common->priv; in rsi_sdio_stats_read() 84 struct rsi_common *common = seq->private; in rsi_version_read() local 86 common->driver_ver.major = 0; in rsi_version_read() 87 common->driver_ver.minor = 1; in rsi_version_read() 88 common->driver_ver.release_num = 0; in rsi_version_read() 89 common->driver_ver.patch_num = 0; in rsi_version_read() 91 common->driver_ver.major, in rsi_version_read() 92 common->driver_ver.minor, in rsi_version_read() 93 common->driver_ver.release_num, in rsi_version_read() [all …]
|
D | rsi_91x_sdio_ops.c | 75 static int rsi_copy_to_card(struct rsi_common *common, in rsi_copy_to_card() argument 80 struct rsi_hw *adapter = common->priv; in rsi_copy_to_card() 168 static int rsi_load_ta_instructions(struct rsi_common *common) in rsi_load_ta_instructions() argument 170 struct rsi_hw *adapter = common->priv; in rsi_load_ta_instructions() 220 status = rsi_copy_to_card(common, fw, len, num_blocks); in rsi_load_ta_instructions() 235 static int rsi_process_pkt(struct rsi_common *common) in rsi_process_pkt() argument 237 struct rsi_hw *adapter = common->priv; in rsi_process_pkt() 254 common->rx_data_pkt = kmalloc(rcv_pkt_len, GFP_KERNEL); in rsi_process_pkt() 255 if (!common->rx_data_pkt) { in rsi_process_pkt() 262 common->rx_data_pkt, in rsi_process_pkt() [all …]
|
/drivers/media/platform/davinci/ |
D | vpif_display.c | 74 struct common_obj *common; in vpif_buffer_prepare() local 76 common = &ch->common[VPIF_VIDEO_INDEX]; in vpif_buffer_prepare() 78 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 82 vbuf->field = common->fmt.fmt.pix.field; in vpif_buffer_prepare() 87 if (!ISALIGNED(addr + common->ytop_off) || in vpif_buffer_prepare() 88 !ISALIGNED(addr + common->ybtm_off) || in vpif_buffer_prepare() 89 !ISALIGNED(addr + common->ctop_off) || in vpif_buffer_prepare() 90 !ISALIGNED(addr + common->cbtm_off)) { in vpif_buffer_prepare() 118 struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX]; in vpif_buffer_queue_setup() local 120 if (fmt && fmt->fmt.pix.sizeimage < common->fmt.fmt.pix.sizeimage) in vpif_buffer_queue_setup() [all …]
|
D | vpif_capture.c | 79 struct common_obj *common; in vpif_buffer_prepare() local 84 common = &ch->common[VPIF_VIDEO_INDEX]; in vpif_buffer_prepare() 86 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 90 vbuf->field = common->fmt.fmt.pix.field; in vpif_buffer_prepare() 93 if (!IS_ALIGNED((addr + common->ytop_off), 8) || in vpif_buffer_prepare() 94 !IS_ALIGNED((addr + common->ybtm_off), 8) || in vpif_buffer_prepare() 95 !IS_ALIGNED((addr + common->ctop_off), 8) || in vpif_buffer_prepare() 96 !IS_ALIGNED((addr + common->cbtm_off), 8)) { in vpif_buffer_prepare() 123 struct common_obj *common; in vpif_buffer_queue_setup() local 125 common = &ch->common[VPIF_VIDEO_INDEX]; in vpif_buffer_queue_setup() [all …]
|
/drivers/acpi/acpica/ |
D | psparse.c | 162 if (op->common.parent) { in acpi_ps_complete_this_op() 163 prev = op->common.parent->common.value.arg; in acpi_ps_complete_this_op() 176 acpi_ps_get_opcode_info(op->common.parent->common. in acpi_ps_complete_this_op() 191 op->common.aml); in acpi_ps_complete_this_op() 202 if ((op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() 204 || (op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() 206 || (op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() 208 || (op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() 210 || (op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() 212 || (op->common.parent->common.aml_opcode == in acpi_ps_complete_this_op() [all …]
|
D | dsobject.c | 89 if (op->common.aml_opcode == AML_INT_NAMEPATH_OP) { in acpi_ds_build_internal_object() 95 if (!op->common.node) { in acpi_ds_build_internal_object() 97 op->common.value.string, in acpi_ds_build_internal_object() 105 common. in acpi_ds_build_internal_object() 114 ((op->common.parent->common.aml_opcode == in acpi_ds_build_internal_object() 116 || (op->common.parent->common.aml_opcode == in acpi_ds_build_internal_object() 135 ACPI_ERROR_NAMESPACE(op->common.value. in acpi_ds_build_internal_object() 145 if ((op->common.parent->common.aml_opcode == AML_PACKAGE_OP) || in acpi_ds_build_internal_object() 146 (op->common.parent->common.aml_opcode == in acpi_ds_build_internal_object() 164 op->common.node); in acpi_ds_build_internal_object() [all …]
|
D | dsutils.c | 204 if ((!op->common.parent) || in acpi_ds_is_result_used() 205 (op->common.parent->common.aml_opcode == AML_SCOPE_OP)) { in acpi_ds_is_result_used() 211 acpi_ps_get_opcode_name(op->common. in acpi_ds_is_result_used() 219 acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); in acpi_ds_is_result_used() 234 switch (op->common.parent->common.aml_opcode) { in acpi_ds_is_result_used() 247 if ((walk_state->control_state->common.state == in acpi_ds_is_result_used() 275 if ((op->common.parent->common.aml_opcode == AML_REGION_OP) || in acpi_ds_is_result_used() 276 (op->common.parent->common.aml_opcode == AML_DATA_REGION_OP) in acpi_ds_is_result_used() 277 || (op->common.parent->common.aml_opcode == AML_PACKAGE_OP) in acpi_ds_is_result_used() 278 || (op->common.parent->common.aml_opcode == in acpi_ds_is_result_used() [all …]
|
D | dsfield.c | 164 if (op->common.aml_opcode == AML_CREATE_FIELD_OP) { in acpi_ds_create_buffer_field() 207 arg->common.value.string, ACPI_TYPE_ANY, in acpi_ds_create_buffer_field() 211 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); in acpi_ds_create_buffer_field() 221 op->common.node = node; in acpi_ds_create_buffer_field() 250 second_desc = obj_desc->common.next_object; in acpi_ds_create_buffer_field() 310 switch (arg->common.aml_opcode) { in acpi_ds_get_field_names() 314 + (u64) arg->common.value.size; in acpi_ds_get_field_names() 343 ((u8)((u32)(arg->common.value.integer & 0x07)))); in acpi_ds_get_field_names() 348 (u8)((arg->common.value.integer >> 8) & 0xFF); in acpi_ds_get_field_names() 353 (u8)((arg->common.value.integer >> 16) & 0xFF); in acpi_ds_get_field_names() [all …]
|
D | pstree.c | 85 op_info = acpi_ps_get_opcode_info(op->common.aml_opcode); in acpi_ps_get_arg() 104 arg = op->common.value.arg; in acpi_ps_get_arg() 107 arg = arg->common.next; in acpi_ps_get_arg() 140 op_info = acpi_ps_get_opcode_info(op->common.aml_opcode); in acpi_ps_append_arg() 146 op->common.aml_opcode)); in acpi_ps_append_arg() 161 if (op->common.value.arg) { in acpi_ps_append_arg() 165 prev_arg = op->common.value.arg; in acpi_ps_append_arg() 166 while (prev_arg->common.next) { in acpi_ps_append_arg() 167 prev_arg = prev_arg->common.next; in acpi_ps_append_arg() 169 prev_arg->common.next = arg; in acpi_ps_append_arg() [all …]
|
D | nsobject.c | 175 while (last_obj_desc->common.next_object) { in acpi_ns_attach_object() 176 last_obj_desc = last_obj_desc->common.next_object; in acpi_ns_attach_object() 181 last_obj_desc->common.next_object = node->object; in acpi_ns_attach_object() 212 if (!obj_desc || (obj_desc->common.type == ACPI_TYPE_LOCAL_DATA)) { in acpi_ns_detach_object() 220 if (obj_desc->common.type == ACPI_TYPE_METHOD) { in acpi_ns_detach_object() 232 node->object = obj_desc->common.next_object; in acpi_ns_detach_object() 237 (node->object->common.type != ACPI_TYPE_LOCAL_DATA)) { in acpi_ns_detach_object() 238 node->object = node->object->common.next_object; in acpi_ns_detach_object() 245 if (obj_desc->common.next_object && in acpi_ns_detach_object() 246 ((obj_desc->common.next_object)->common.type == in acpi_ns_detach_object() [all …]
|
D | dbxface.c | 180 aml_offset = (u32)ACPI_PTR_DIFF(op->common.aml, in acpi_db_single_step() 212 if (op->common.aml_opcode == AML_INT_NAMEDFIELD_OP) { in acpi_db_single_step() 246 next = op->common.next; in acpi_db_single_step() 247 op->common.next = NULL; in acpi_db_single_step() 250 parent_op = op->common.parent; in acpi_db_single_step() 253 (walk_state->control_state->common.state == in acpi_db_single_step() 261 if ((parent_op->common.aml_opcode == in acpi_db_single_step() 263 || (parent_op->common.aml_opcode == in acpi_db_single_step() 268 parent_op = parent_op->common.parent; in acpi_db_single_step() 272 if ((parent_op->common.aml_opcode == in acpi_db_single_step() [all …]
|
D | dswexec.c | 98 walk_state->control_state->common.state = 0; in acpi_ds_get_predicate_value() 141 if (local_obj_desc->common.type != ACPI_TYPE_INTEGER) { in acpi_ds_get_predicate_value() 144 obj_desc, walk_state, obj_desc->common.type)); in acpi_ds_get_predicate_value() 159 walk_state->control_state->common.value = TRUE; in acpi_ds_get_predicate_value() 165 walk_state->control_state->common.value = FALSE; in acpi_ds_get_predicate_value() 176 walk_state->control_state->common.value, in acpi_ds_get_predicate_value() 193 walk_state->control_state->common.state = ACPI_CONTROL_NORMAL; in acpi_ds_get_predicate_value() 231 walk_state->opcode = op->common.aml_opcode; in acpi_ds_exec_begin_op() 233 acpi_ps_get_opcode_info(op->common.aml_opcode); in acpi_ds_exec_begin_op() 264 (walk_state->control_state->common.state == in acpi_ds_exec_begin_op() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | link.c | 70 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_check() local 79 ath_dbg(common, RESET, in ath_hw_check() 96 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_pll_rx_hang_check() local 101 ath_dbg(common, RESET, "PLL WAR, resetting the chip\n"); in ath_hw_pll_rx_hang_check() 118 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_pll_work() local 125 if (!test_bit(ATH_OP_BEACONS, &common->op_flags)) in ath_hw_pll_work() 147 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_activate() local 152 ath_dbg(common, CALIBRATE, "Failed to activate PAPRD\n"); in ath_paprd_activate() 164 ath_dbg(common, CALIBRATE, "Activating PAPRD\n"); in ath_paprd_activate() 173 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_send_frame() local [all …]
|
D | htc_drv_init.c | 64 static void ath9k_htc_op_ps_wakeup(struct ath_common *common) in ath9k_htc_op_ps_wakeup() argument 66 ath9k_htc_ps_wakeup((struct ath9k_htc_priv *) common->priv); in ath9k_htc_op_ps_wakeup() 69 static void ath9k_htc_op_ps_restore(struct ath_common *common) in ath9k_htc_op_ps_restore() argument 71 ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv); in ath9k_htc_op_ps_restore() 237 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regread() local 238 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_regread() 247 ath_dbg(common, WMI, "REGISTER READ FAILED: (0x%04x, %d)\n", in ath9k_regread() 259 struct ath_common *common = ath9k_hw_common(ah); in ath9k_multi_regread() local 260 struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *) common->priv; in ath9k_multi_regread() 274 ath_dbg(common, WMI, in ath9k_multi_regread() [all …]
|
D | htc_drv_main.c | 143 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_mac_bssid_mask() local 162 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_htc_set_mac_bssid_mask() 165 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN); in ath9k_htc_set_mac_bssid_mask() 167 ath_hw_setbssidmask(common); in ath9k_htc_set_mac_bssid_mask() 187 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_reset() local 213 ath_err(common, in ath9k_htc_reset() 245 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_set_channel() local 246 struct ieee80211_conf *conf = &common->hw->conf; in ath9k_htc_set_channel() 255 if (test_bit(ATH_OP_INVALID, &common->op_flags)) in ath9k_htc_set_channel() 272 ath_dbg(common, CONFIG, in ath9k_htc_set_channel() [all …]
|
D | main.c | 99 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_ps_full_sleep() local 102 spin_lock(&common->cc_lock); in ath_ps_full_sleep() 103 ath_hw_cycle_counters_update(common); in ath_ps_full_sleep() 104 spin_unlock(&common->cc_lock); in ath_ps_full_sleep() 114 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath9k_ps_wakeup() local 132 spin_lock(&common->cc_lock); in ath9k_ps_wakeup() 133 ath_hw_cycle_counters_update(common); in ath9k_ps_wakeup() 134 memset(&common->cc_survey, 0, sizeof(common->cc_survey)); in ath9k_ps_wakeup() 135 memset(&common->cc_ani, 0, sizeof(common->cc_ani)); in ath9k_ps_wakeup() 136 spin_unlock(&common->cc_lock); in ath9k_ps_wakeup() [all …]
|
/drivers/thermal/ |
D | rcar_thermal.c | 60 struct rcar_thermal_common *common; member 69 #define rcar_thermal_for_each_priv(pos, common) \ argument 70 list_for_each_entry(pos, &common->head, list) 74 #define rcar_priv_to_dev(priv) ((priv)->common->dev) 75 #define rcar_has_irq_support(priv) ((priv)->common->base) 89 static u32 _rcar_thermal_common_read(struct rcar_thermal_common *common, in _rcar_thermal_common_read() argument 92 return ioread32(common->base + reg); in _rcar_thermal_common_read() 97 static void _rcar_thermal_common_write(struct rcar_thermal_common *common, in _rcar_thermal_common_write() argument 100 iowrite32(data, common->base + reg); in _rcar_thermal_common_write() 105 static void _rcar_thermal_common_bset(struct rcar_thermal_common *common, in _rcar_thermal_common_bset() argument [all …]
|