Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/drivers/net/wireless/ath/ath6kl/
Dhtc_mbox.c28 static void ath6kl_htc_mbox_cleanup(struct htc_target *target);
29 static void ath6kl_htc_mbox_stop(struct htc_target *target);
30 static int ath6kl_htc_mbox_add_rxbuf_multiple(struct htc_target *target,
32 static void ath6kl_htc_set_credit_dist(struct htc_target *target,
375 static void htc_reclaim_txctrl_buf(struct htc_target *target, in htc_reclaim_txctrl_buf() argument
378 spin_lock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf()
379 list_add_tail(&pkt->list, &target->free_ctrl_txbuf); in htc_reclaim_txctrl_buf()
380 spin_unlock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf()
383 static struct htc_packet *htc_get_control_buf(struct htc_target *target, in htc_get_control_buf() argument
389 buf_list = tx ? &target->free_ctrl_txbuf : &target->free_ctrl_rxbuf; in htc_get_control_buf()
[all …]
Dhtc-ops.h28 static inline int ath6kl_htc_wait_target(struct htc_target *target) in ath6kl_htc_wait_target() argument
30 return target->dev->ar->htc_ops->wait_target(target); in ath6kl_htc_wait_target()
33 static inline int ath6kl_htc_start(struct htc_target *target) in ath6kl_htc_start() argument
35 return target->dev->ar->htc_ops->start(target); in ath6kl_htc_start()
38 static inline int ath6kl_htc_conn_service(struct htc_target *target, in ath6kl_htc_conn_service() argument
42 return target->dev->ar->htc_ops->conn_service(target, req, resp); in ath6kl_htc_conn_service()
45 static inline int ath6kl_htc_tx(struct htc_target *target, in ath6kl_htc_tx() argument
48 return target->dev->ar->htc_ops->tx(target, packet); in ath6kl_htc_tx()
51 static inline void ath6kl_htc_stop(struct htc_target *target) in ath6kl_htc_stop() argument
53 return target->dev->ar->htc_ops->stop(target); in ath6kl_htc_stop()
[all …]
Dhtc_pipe.c56 ep->ep_cb.tx_comp_multi(ep->target, queue_to_indicate); in do_send_completion()
72 ep->ep_cb.tx_complete(ep->target, packet); in do_send_completion()
77 static void send_packet_completion(struct htc_target *target, in send_packet_completion() argument
80 struct htc_endpoint *ep = &target->endpoint[packet->endpoint]; in send_packet_completion()
91 static void get_htc_packet_credit_based(struct htc_target *target, in get_htc_packet_credit_based() argument
118 if (transfer_len <= target->tgt_cred_sz) { in get_htc_packet_credit_based()
122 credits_required = transfer_len / target->tgt_cred_sz; in get_htc_packet_credit_based()
123 remainder = transfer_len % target->tgt_cred_sz; in get_htc_packet_credit_based()
173 static void get_htc_packet(struct htc_target *target, in get_htc_packet() argument
203 static int htc_issue_packets(struct htc_target *target, in htc_issue_packets() argument
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c216 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument
222 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin()
223 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin()
275 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument
285 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
286 target->srp_host->port, in srp_init_ib_qp()
287 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp()
295 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
310 struct srp_target_port *target = ch->target; in srp_new_ib_cm_id() local
313 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
[all …]
/drivers/net/wireless/ath/ath9k/
Dhtc_hst.c21 static int htc_issue_send(struct htc_target *target, struct sk_buff* skb, in htc_issue_send() argument
26 struct htc_endpoint *endpoint = &target->endpoint[epid]; in htc_issue_send()
35 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send()
88 static void htc_process_target_rdy(struct htc_target *target, in htc_process_target_rdy() argument
94 target->credit_size = be16_to_cpu(htc_ready_msg->credit_size); in htc_process_target_rdy()
96 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy()
99 atomic_inc(&target->tgt_ready); in htc_process_target_rdy()
100 complete(&target->target_wait); in htc_process_target_rdy()
103 static void htc_process_conn_rsp(struct htc_target *target, in htc_process_conn_rsp() argument
128 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/drivers/acpi/numa/
Dhmat.c95 struct memory_target *target; in find_mem_target() local
97 list_for_each_entry(target, &targets, node) in find_mem_target()
98 if (target->memory_pxm == mem_pxm) in find_mem_target()
99 return target; in find_mem_target()
126 struct memory_target *target; in alloc_memory_target() local
128 target = find_mem_target(mem_pxm); in alloc_memory_target()
129 if (!target) { in alloc_memory_target()
130 target = kzalloc(sizeof(*target), GFP_KERNEL); in alloc_memory_target()
131 if (!target) in alloc_memory_target()
133 target->memory_pxm = mem_pxm; in alloc_memory_target()
[all …]
/drivers/net/ethernet/mscc/
Docelot_io.c15 u16 target = reg >> TARGET_OFFSET; in __ocelot_read_ix() local
18 WARN_ON(!target); in __ocelot_read_ix()
20 regmap_read(ocelot->targets[target], in __ocelot_read_ix()
21 ocelot->map[target][reg & REG_MASK] + offset, &val); in __ocelot_read_ix()
28 u16 target = reg >> TARGET_OFFSET; in __ocelot_write_ix() local
30 WARN_ON(!target); in __ocelot_write_ix()
32 regmap_write(ocelot->targets[target], in __ocelot_write_ix()
33 ocelot->map[target][reg & REG_MASK] + offset, val); in __ocelot_write_ix()
40 u16 target = reg >> TARGET_OFFSET; in __ocelot_rmw_ix() local
42 WARN_ON(!target); in __ocelot_rmw_ix()
[all …]
/drivers/macintosh/
Dwindfarm_pid.c36 s32 target; in wf_pid_run() local
67 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run()
70 target += st->target; in wf_pid_run()
71 target = max(target, st->param.min); in wf_pid_run()
72 target = min(target, st->param.max); in wf_pid_run()
73 st->target = target; in wf_pid_run()
75 return st->target; in wf_pid_run()
91 s32 error, target, sval, adj; in wf_cpu_pid_run() local
137 target = st->target + (s32)((deriv + prop) >> 36); in wf_cpu_pid_run()
138 target = max(target, st->param.min); in wf_cpu_pid_run()
[all …]
/drivers/of/
Doverlay.c41 struct target { struct
53 struct device_node *target; member
99 struct target *target, const struct device_node *overlay_node);
166 nd.target = fragment->target; in overlay_notify()
174 of_overlay_action_name(action), ret, nd.target); in overlay_notify()
240 target_path = kasprintf(GFP_KERNEL, "%pOF", fragment->target); in dup_and_fixup_symbol_prop()
301 struct target *target, struct property *overlay_prop, in add_changeset_property() argument
307 if (target->in_livetree) in add_changeset_property()
313 if (target->in_livetree) in add_changeset_property()
314 prop = of_find_property(target->np, overlay_prop->name, NULL); in add_changeset_property()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dftm-initiator.c366 struct iwl_tof_range_req_ap_entry_v2 *target) in iwl_mvm_ftm_put_target_v2() argument
370 ret = iwl_mvm_ftm_target_chandef_v1(mvm, peer, &target->channel_num, in iwl_mvm_ftm_put_target_v2()
371 &target->bandwidth, in iwl_mvm_ftm_put_target_v2()
372 &target->ctrl_ch_position); in iwl_mvm_ftm_put_target_v2()
376 memcpy(target->bssid, peer->addr, ETH_ALEN); in iwl_mvm_ftm_put_target_v2()
377 target->burst_period = in iwl_mvm_ftm_put_target_v2()
379 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2()
380 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2()
381 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2()
382 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2()
[all …]
/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c104 int srp_target_alloc(struct srp_target *target, struct device *dev, in srp_target_alloc() argument
109 spin_lock_init(&target->lock); in srp_target_alloc()
111 target->dev = dev; in srp_target_alloc()
113 target->srp_iu_size = iu_size; in srp_target_alloc()
114 target->rx_ring_size = nr; in srp_target_alloc()
115 target->rx_ring = srp_ring_alloc(target->dev, nr, iu_size); in srp_target_alloc()
116 if (!target->rx_ring) in srp_target_alloc()
118 err = srp_iu_pool_alloc(&target->iu_queue, nr, target->rx_ring); in srp_target_alloc()
122 dev_set_drvdata(target->dev, target); in srp_target_alloc()
126 srp_ring_free(target->dev, target->rx_ring, nr, iu_size); in srp_target_alloc()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_mutex.c16 int target; member
51 nfp_cpp_mutex_validate(u16 interface, int *target, unsigned long long address) in nfp_cpp_mutex_validate() argument
62 if (*target != NFP_CPP_TARGET_MU) in nfp_cpp_mutex_validate()
87 int target, unsigned long long address, u32 key) in nfp_cpp_mutex_init() argument
89 const u32 muw = NFP_CPP_ID(target, 4, 0); /* atomic_write */ in nfp_cpp_mutex_init()
93 err = nfp_cpp_mutex_validate(interface, &target, address); in nfp_cpp_mutex_init()
123 struct nfp_cpp_mutex *nfp_cpp_mutex_alloc(struct nfp_cpp *cpp, int target, in nfp_cpp_mutex_alloc() argument
126 const u32 mur = NFP_CPP_ID(target, 3, 0); /* atomic_read */ in nfp_cpp_mutex_alloc()
132 err = nfp_cpp_mutex_validate(interface, &target, address); in nfp_cpp_mutex_alloc()
148 mutex->target = target; in nfp_cpp_mutex_alloc()
[all …]
/drivers/acpi/acpica/
Drsdump.c180 u8 *target = NULL; in acpi_rs_dump_descriptor() local
190 previous_target = target; in acpi_rs_dump_descriptor()
191 target = ACPI_ADD_PTR(u8, resource, table->offset); in acpi_rs_dump_descriptor()
214 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target)); in acpi_rs_dump_descriptor()
223 table->pointer[*target]); in acpi_rs_dump_descriptor()
225 acpi_rs_out_integer8(name, ACPI_GET8(target)); in acpi_rs_dump_descriptor()
231 acpi_rs_out_integer16(name, ACPI_GET16(target)); in acpi_rs_dump_descriptor()
236 acpi_rs_out_integer32(name, ACPI_GET32(target)); in acpi_rs_dump_descriptor()
241 acpi_rs_out_integer64(name, ACPI_GET64(target)); in acpi_rs_dump_descriptor()
249 table->pointer[*target & 0x01]); in acpi_rs_dump_descriptor()
[all …]
Drsmisc.c42 char *target; in acpi_rs_convert_aml_to_resource() local
73 target = NULL; in acpi_rs_convert_aml_to_resource()
153 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource()
154 item_count = ACPI_GET16(target) - ACPI_GET16(source); in acpi_rs_convert_aml_to_resource()
175 target = ACPI_ADD_PTR(void, aml, (info->value + 2)); in acpi_rs_convert_aml_to_resource()
176 if (ACPI_GET16(target)) { in acpi_rs_convert_aml_to_resource()
180 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource()
182 ACPI_GET16(target) - ACPI_GET16(source); in acpi_rs_convert_aml_to_resource()
237 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
240 *(u16 **)destination = ACPI_CAST_PTR(u16, target); in acpi_rs_convert_aml_to_resource()
[all …]
/drivers/nfc/pn544/
Dpn544.c444 struct nfc_target *target, u8 comm_mode, in pn544_hci_dep_link_up() argument
450 r = nfc_hci_get_param(hdev, target->hci_reader_gate, in pn544_hci_dep_link_up()
466 r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode, in pn544_hci_dep_link_up()
481 struct nfc_target *target) in pn544_hci_target_from_gate() argument
485 target->supported_protocols = NFC_PROTO_FELICA_MASK; in pn544_hci_target_from_gate()
488 target->supported_protocols = NFC_PROTO_JEWEL_MASK; in pn544_hci_target_from_gate()
489 target->sens_res = 0x0c00; in pn544_hci_target_from_gate()
492 target->supported_protocols = NFC_PROTO_NFC_DEP_MASK; in pn544_hci_target_from_gate()
503 struct nfc_target *target) in pn544_hci_complete_target_discovered() argument
511 if (target->supported_protocols & NFC_PROTO_NFC_DEP_MASK) { in pn544_hci_complete_target_discovered()
[all …]
/drivers/scsi/
Dqla1280.c773 qla1280_wait_for_pending_commands(struct scsi_qla_host *ha, int bus, int target) in qla1280_wait_for_pending_commands() argument
793 if (target >= 0 && SCSI_TCN_32(cmd) != target) in qla1280_wait_for_pending_commands()
822 int bus, target, lun; in qla1280_error_action() local
835 target = SCSI_TCN_32(cmd); in qla1280_error_action()
871 target, lun); in qla1280_error_action()
892 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
893 if (qla1280_device_reset(ha, bus, target) == 0) { in qla1280_error_action()
896 wait_for_target = target; in qla1280_error_action()
944 ha->host_no, bus, target, lun); in qla1280_error_action()
1114 qla1280_set_target_parameters(struct scsi_qla_host *ha, int bus, int target) in qla1280_set_target_parameters() argument
[all …]
Dnsp32.c453 unsigned char target = scmd_id(SCpnt); in nsp32_selection_autopara() local
522 param->target_id = BIT(host_id) | BIT(target); in nsp32_selection_autopara()
585 unsigned char target = scmd_id(SCpnt); in nsp32_selection_autoscsi() local
632 BIT(host_id) | BIT(target)); in nsp32_selection_autoscsi()
844 data->cur_target = &(data->target[newid]); in nsp32_reselection()
911 nsp32_target *target; in nsp32_queuecommand_lck() local
985 target = &data->target[scmd_id(SCpnt)]; in nsp32_queuecommand_lck()
986 data->cur_target = target; in nsp32_queuecommand_lck()
988 if (!(target->sync_flag & (SDTR_DONE | SDTR_INITIATOR | SDTR_TARGET))) { in nsp32_queuecommand_lck()
992 nsp32_set_max_sync(data, target, &period, &offset); in nsp32_queuecommand_lck()
[all …]
/drivers/thermal/
Dgov_bang_bang.c41 if (instance->target == THERMAL_NO_TARGET) in thermal_zone_trip_update()
42 instance->target = 0; in thermal_zone_trip_update()
45 if (instance->target != 0 && instance->target != 1) { in thermal_zone_trip_update()
47 instance->name, instance->target); in thermal_zone_trip_update()
48 instance->target = 1; in thermal_zone_trip_update()
55 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
56 instance->target = 1; in thermal_zone_trip_update()
57 else if (instance->target == 1 && in thermal_zone_trip_update()
59 instance->target = 0; in thermal_zone_trip_update()
62 (int)instance->target); in thermal_zone_trip_update()
Dthermal_helpers.c186 int target) in thermal_cdev_set_cur_state() argument
188 if (cdev->ops->set_cur_state(cdev, target)) in thermal_cdev_set_cur_state()
191 thermal_notify_cdev_state_update(cdev->id, target); in thermal_cdev_set_cur_state()
192 thermal_cooling_device_stats_update(cdev, target); in thermal_cdev_set_cur_state()
198 unsigned long target = 0; in __thermal_cdev_update() local
203 instance->tz->id, instance->target); in __thermal_cdev_update()
204 if (instance->target == THERMAL_NO_TARGET) in __thermal_cdev_update()
206 if (instance->target > target) in __thermal_cdev_update()
207 target = instance->target; in __thermal_cdev_update()
210 thermal_cdev_set_cur_state(cdev, target); in __thermal_cdev_update()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfan.c32 nvkm_fan_update(struct nvkm_fan *fan, bool immediate, int target) in nvkm_fan_update() argument
43 if (target < 0) in nvkm_fan_update()
44 target = fan->percent; in nvkm_fan_update()
45 target = max_t(u8, target, fan->bios.min_duty); in nvkm_fan_update()
46 target = min_t(u8, target, fan->bios.max_duty); in nvkm_fan_update()
47 if (fan->percent != target) { in nvkm_fan_update()
48 nvkm_debug(subdev, "FAN target: %d\n", target); in nvkm_fan_update()
49 fan->percent = target; in nvkm_fan_update()
54 if (duty == target) { in nvkm_fan_update()
65 if (duty < target) in nvkm_fan_update()
[all …]
/drivers/nfc/st21nfca/
Dcore.c569 struct nfc_target *target) in st21nfca_get_iso15693_inventory() argument
588 memcpy(target->iso15693_uid, inventory_skb->data, inventory_skb->len); in st21nfca_get_iso15693_inventory()
589 target->iso15693_dsfid = inventory_skb->data[1]; in st21nfca_get_iso15693_inventory()
590 target->is_iso15693 = 1; in st21nfca_get_iso15693_inventory()
597 struct nfc_target *target, u8 comm_mode, in st21nfca_hci_dep_link_up() argument
602 info->dep_info.idx = target->idx; in st21nfca_hci_dep_link_up()
617 struct nfc_target *target) in st21nfca_hci_target_from_gate() argument
626 target->supported_protocols = NFC_PROTO_FELICA_MASK; in st21nfca_hci_target_from_gate()
634 target->supported_protocols = NFC_PROTO_JEWEL_MASK; in st21nfca_hci_target_from_gate()
635 target->sens_res = 0x0c00; in st21nfca_hci_target_from_gate()
[all …]
/drivers/hwtracing/coresight/
Dcoresight-sysfs.c73 if (!info->orig || !info->target || in coresight_add_sysfs_link()
76 if (!info->orig->has_conns_grp || !info->target->has_conns_grp) in coresight_add_sysfs_link()
82 &info->target->dev.kobj, in coresight_add_sysfs_link()
88 ret = sysfs_add_link_to_group(&info->target->dev.kobj, in coresight_add_sysfs_link()
100 info->target->nr_links++; in coresight_add_sysfs_link()
111 if (!info->orig || !info->target || in coresight_remove_sysfs_link()
119 sysfs_remove_link_from_group(&info->target->dev.kobj, in coresight_remove_sysfs_link()
124 info->target->nr_links--; in coresight_remove_sysfs_link()
145 struct coresight_device *target) in coresight_make_links() argument
156 ins = devm_kasprintf(&target->dev, GFP_KERNEL, in coresight_make_links()
[all …]
/drivers/infiniband/hw/hfi1/
Dqsfp.c274 static int __i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_write() argument
282 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0; in __i2c_write()
293 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_write() argument
298 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__)) in i2c_write()
301 ret = __i2c_write(ppd, target, i2c_addr, offset, bp, len); in i2c_write()
313 static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_read() argument
321 bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0; in __i2c_read()
332 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_read() argument
337 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__)) in i2c_read()
340 ret = __i2c_read(ppd, target, i2c_addr, offset, bp, len); in i2c_read()
[all …]
/drivers/md/
Ddm-user.c93 struct target *t;
96 struct target { struct
150 struct target *target; argument
194 static inline bool is_user_space_thread_present(struct target *t) in is_user_space_thread_present()
205 struct target *t = msg->t; in process_delayed_work()
272 static inline struct target *target_from_target(struct dm_target *target) in target_from_target() argument
274 WARN_ON(target->private == NULL); in target_from_target()
275 return target->private; in target_from_target()
278 static inline struct target *target_from_miscdev(struct miscdevice *miscdev) in target_from_miscdev()
280 return container_of(miscdev, struct target, miscdev); in target_from_miscdev()
[all …]
/drivers/misc/lkdtm/
Dfortify.c15 struct target { in lkdtm_FORTIFIED_OBJECT() struct
17 } target[2] = {}; in lkdtm_FORTIFIED_OBJECT() local
28 fortify_scratch_space = memcmp(&target[0], &target[1], size); in lkdtm_FORTIFIED_OBJECT()
36 struct target { in lkdtm_FORTIFIED_SUBOBJECT() struct
39 } target; in lkdtm_FORTIFIED_SUBOBJECT() local
54 memcpy(target.a, src, size); in lkdtm_FORTIFIED_SUBOBJECT()
57 fortify_scratch_space = target.a[3]; in lkdtm_FORTIFIED_SUBOBJECT()

12345678910>>...26