Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 38) sorted by relevance

12

/drivers/thunderbolt/
Dctl.c159 tb_cfg_request_find(struct tb_ctl *ctl, struct ctl_pkg *pkg) in tb_cfg_request_find() argument
164 mutex_lock(&pkg->ctl->request_queue_lock); in tb_cfg_request_find()
165 list_for_each_entry(req, &pkg->ctl->request_queue, list) { in tb_cfg_request_find()
167 if (req->match(req, pkg)) { in tb_cfg_request_find()
173 mutex_unlock(&pkg->ctl->request_queue_lock); in tb_cfg_request_find()
181 static int check_header(const struct ctl_pkg *pkg, u32 len, in check_header() argument
184 struct tb_cfg_header *header = pkg->buffer; in check_header()
187 if (WARN(len != pkg->frame.size, in check_header()
189 len, pkg->frame.size)) in check_header()
191 if (WARN(type != pkg->frame.eof, "wrong eof (expected %#x, got %#x)\n", in check_header()
[all …]
Dicm.c127 struct icm_pkg_header *pkg; member
272 const struct ctl_pkg *pkg) in icm_match() argument
274 const struct icm_pkg_header *res_hdr = pkg->buffer; in icm_match()
277 if (pkg->frame.eof != req->response_type) in icm_match()
285 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in icm_copy() argument
287 const struct icm_pkg_header *hdr = pkg->buffer; in icm_copy()
292 memcpy(req->response + offset, pkg->buffer, req->response_size); in icm_copy()
724 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
738 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
739 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
[all …]
Ddma_port.c66 const struct ctl_pkg *pkg) in dma_port_match() argument
68 u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63); in dma_port_match()
70 if (pkg->frame.eof == TB_CFG_PKG_ERROR) in dma_port_match()
72 if (pkg->frame.eof != req->response_type) in dma_port_match()
76 if (pkg->frame.size != req->response_size) in dma_port_match()
82 static bool dma_port_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in dma_port_copy() argument
84 memcpy(req->response, pkg->buffer, req->response_size); in dma_port_copy()
Dxdomain.c31 struct tb_xdp_header *pkg; member
64 const struct ctl_pkg *pkg) in tb_xdomain_match() argument
66 switch (pkg->frame.eof) { in tb_xdomain_match()
71 const struct tb_xdp_header *res_hdr = pkg->buffer; in tb_xdomain_match()
74 if (pkg->frame.size < req->response_size / 4) in tb_xdomain_match()
97 const struct ctl_pkg *pkg) in tb_xdomain_copy() argument
99 memcpy(req->response, pkg->buffer, req->response_size); in tb_xdomain_copy()
581 const struct tb_xdp_header *pkg = xw->pkg; in tb_xdp_handle_request() local
582 const struct tb_xdomain_header *xhdr = &pkg->xd_hdr; in tb_xdp_handle_request()
607 tb_dbg(tb, "%llx: received XDomain request %#x\n", route, pkg->type); in tb_xdp_handle_request()
[all …]
Dctl.h87 const struct ctl_pkg *pkg);
88 bool (*copy)(struct tb_cfg_request *req, const struct ctl_pkg *pkg);
Dtb.c1327 const struct cfg_event_pkg *pkg = buf; in tb_handle_event() local
1335 route = tb_cfg_get_route(&pkg->header); in tb_handle_event()
1337 if (tb_cfg_ack_plug(tb->ctl, route, pkg->port, pkg->unplug)) { in tb_handle_event()
1339 pkg->port); in tb_handle_event()
1342 tb_queue_hotplug(tb, route, pkg->port, pkg->unplug); in tb_handle_event()
/drivers/md/
Ddm-log-userspace-transfer.c85 struct receiving_pkg *pkg; in fill_pkg() local
97 list_for_each_entry(pkg, &receiving_list, list) { in fill_pkg()
98 if (rtn_seq != pkg->seq) in fill_pkg()
102 pkg->error = -msg->ack; in fill_pkg()
108 if (pkg->error != -EAGAIN) in fill_pkg()
109 *(pkg->data_size) = 0; in fill_pkg()
110 } else if (tfr->data_size > *(pkg->data_size)) { in fill_pkg()
113 tfr->data_size, *(pkg->data_size)); in fill_pkg()
115 *(pkg->data_size) = 0; in fill_pkg()
116 pkg->error = -ENOSPC; in fill_pkg()
[all …]
Ddm-log-userspace-base.c720 } pkg; in userspace_get_resync_work() local
725 rdata_size = sizeof(pkg); in userspace_get_resync_work()
727 NULL, 0, (char *)&pkg, &rdata_size); in userspace_get_resync_work()
729 *region = pkg.r; in userspace_get_resync_work()
730 return (r) ? r : (int)pkg.i; in userspace_get_resync_work()
746 } pkg; in userspace_set_region_sync() local
748 pkg.r = region; in userspace_set_region_sync()
749 pkg.i = (int64_t)in_sync; in userspace_set_region_sync()
752 (char *)&pkg, sizeof(pkg), NULL, NULL); in userspace_set_region_sync()
845 } pkg; in userspace_is_remote_recovering() local
[all …]
/drivers/acpi/nfit/
Dintel.c58 struct nd_cmd_pkg pkg; in intel_security_flags() member
61 .pkg = { in intel_security_flags()
123 struct nd_cmd_pkg pkg; in intel_security_freeze() member
126 .pkg = { in intel_security_freeze()
156 struct nd_cmd_pkg pkg; in intel_security_change_key() member
159 .pkg = { in intel_security_change_key()
200 struct nd_cmd_pkg pkg; in intel_security_unlock() member
203 .pkg = { in intel_security_unlock()
242 struct nd_cmd_pkg pkg; in intel_security_disable() member
245 .pkg = { in intel_security_disable()
[all …]
/drivers/acpi/acpica/
Dutmisc.c218 this_index = state->pkg.index; in acpi_ut_walk_package_tree()
220 state->pkg.source_object->package.elements[this_index]; in acpi_ut_walk_package_tree()
221 state->pkg.this_target_obj = in acpi_ut_walk_package_tree()
222 &state->pkg.source_object->package.elements[this_index]; in acpi_ut_walk_package_tree()
243 state->pkg.index++; in acpi_ut_walk_package_tree()
244 while (state->pkg.index >= in acpi_ut_walk_package_tree()
245 state->pkg.source_object->package.count) { in acpi_ut_walk_package_tree()
271 state->pkg.index++; in acpi_ut_walk_package_tree()
290 state->pkg.this_target_obj, in acpi_ut_walk_package_tree()
Dutstate.c209 state->pkg.source_object = (union acpi_operand_object *)internal_object; in acpi_ut_create_pkg_state()
210 state->pkg.dest_object = external_object; in acpi_ut_create_pkg_state()
211 state->pkg.index = index; in acpi_ut_create_pkg_state()
212 state->pkg.num_packages = 1; in acpi_ut_create_pkg_state()
Dutcopy.c225 this_index = state->pkg.index; in acpi_ut_copy_ielement_to_eelement()
227 (state->pkg.dest_object))-> in acpi_ut_copy_ielement_to_eelement()
256 state->pkg.this_target_obj = target_object; in acpi_ut_copy_ielement_to_eelement()
803 this_index = state->pkg.index; in acpi_ut_copy_ielement_to_ielement()
805 &state->pkg.dest_object->package.elements[this_index]; in acpi_ut_copy_ielement_to_ielement()
853 state->pkg.this_target_obj = target_object; in acpi_ut_copy_ielement_to_ielement()
/drivers/gpu/drm/i915/display/
Dintel_acpi.c83 union acpi_object *pkg, *connector_count; in intel_dsm_platform_mux_info() local
85 pkg = acpi_evaluate_dsm_typed(dhandle, &intel_dsm_guid, in intel_dsm_platform_mux_info()
88 if (!pkg) { in intel_dsm_platform_mux_info()
93 if (!pkg->package.count) { in intel_dsm_platform_mux_info()
98 connector_count = &pkg->package.elements[0]; in intel_dsm_platform_mux_info()
101 for (i = 1; i < pkg->package.count; i++) { in intel_dsm_platform_mux_info()
102 union acpi_object *obj = &pkg->package.elements[i]; in intel_dsm_platform_mux_info()
130 ACPI_FREE(pkg); in intel_dsm_platform_mux_info()
/drivers/net/ethernet/microsoft/mana/
Dmana_en.c135 struct mana_tx_package pkg = {}; in mana_start_xmit() local
154 pkg.tx_oob.s_oob.vcq_num = cq->gdma_id; in mana_start_xmit()
155 pkg.tx_oob.s_oob.vsq_frame = txq->vsq_frame; in mana_start_xmit()
158 pkg.tx_oob.l_oob.long_vp_offset = txq->vp_offset; in mana_start_xmit()
161 pkg.tx_oob.s_oob.short_vp_offset = txq->vp_offset; in mana_start_xmit()
164 pkg.tx_oob.s_oob.pkt_fmt = pkt_fmt; in mana_start_xmit()
167 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_short_oob); in mana_start_xmit()
169 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_oob); in mana_start_xmit()
171 pkg.wqe_req.inline_oob_data = &pkg.tx_oob; in mana_start_xmit()
172 pkg.wqe_req.flags = 0; in mana_start_xmit()
[all …]
/drivers/i2c/busses/
Di2c-scmi.c91 union acpi_object *pkg; in acpi_smbus_cmi_access() local
186 pkg = buffer.pointer; in acpi_smbus_cmi_access()
187 if (pkg && pkg->type == ACPI_TYPE_PACKAGE) in acpi_smbus_cmi_access()
188 obj = pkg->package.elements; in acpi_smbus_cmi_access()
225 obj = pkg->package.elements + 1; in acpi_smbus_cmi_access()
233 obj = pkg->package.elements + 2; in acpi_smbus_cmi_access()
/drivers/net/ethernet/broadcom/
Dbgmac-bcma.c231 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM47186) || in bgmac_probe()
232 (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg == BCMA_PKG_ID_BCM47188)) { in bgmac_probe()
236 if (ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM5358) in bgmac_probe()
242 if (ci->pkg == BCMA_PKG_ID_BCM47189) in bgmac_probe()
246 if (ci->pkg == BCMA_PKG_ID_BCM47189) in bgmac_probe()
259 if (ci->pkg == 10) { in bgmac_probe()
Dbgmac-bcma-mdio.c149 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg != 10) || in bcma_mdio_phy_init()
150 (ci->id == BCMA_CHIP_ID_BCM4749 && ci->pkg != 10) || in bcma_mdio_phy_init()
151 (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg != 9)) { in bcma_mdio_phy_init()
/drivers/pinctrl/stm32/
Dpinctrl-stm32.h35 const unsigned int pkg; member
48 .pkg = _pkg, \
Dpinctrl-stm32.c115 u32 pkg; member
1427 if (pctl->pkg && !(pctl->pkg & p->pkg)) in stm32_pctrl_create_pins_tab()
1443 if (of_property_read_u32(np, "st,package", &pctl->pkg)) { in stm32_pctl_get_package()
1444 pctl->pkg = 0; in stm32_pctl_get_package()
1447 dev_dbg(pctl->dev, "package detected: %x\n", pctl->pkg); in stm32_pctl_get_package()
/drivers/nvdimm/
Dbus.c877 struct nd_cmd_pkg *pkg = buf; in nd_cmd_in_size() local
879 return pkg->nd_size_in; in nd_cmd_in_size()
918 struct nd_cmd_pkg *pkg = (struct nd_cmd_pkg *) in_field; in nd_cmd_out_size() local
920 return pkg->nd_size_out; in nd_cmd_out_size()
1032 struct nd_cmd_pkg pkg; in __nd_ioctl() local
1053 if (copy_from_user(&pkg, p, sizeof(pkg))) in __nd_ioctl()
1057 if (pkg.nd_family > NVDIMM_FAMILY_MAX) in __nd_ioctl()
1061 if (pkg.nd_family > NVDIMM_BUS_FAMILY_MAX) in __nd_ioctl()
1066 if (!test_bit(pkg.nd_family, mask)) in __nd_ioctl()
1118 func = pkg.nd_command; in __nd_ioctl()
[all …]
/drivers/edac/
Dsb_edac.c1083 static inline u8 sad_pkg_socket(u8 pkg) in sad_pkg_socket() argument
1086 return ((pkg >> 3) << 2) | (pkg & 0x3); in sad_pkg_socket()
1089 static inline u8 sad_pkg_ha(u8 pkg) in sad_pkg_ha() argument
1091 return (pkg >> 2) & 0x1; in sad_pkg_ha()
1347 u32 first_pkg, pkg; in knl_get_dimm_capacity() local
1440 pkg = sad_pkg(pvt->info.interleave_pkg, in knl_get_dimm_capacity()
1443 if ((pkg & 0x8) == 0) { in knl_get_dimm_capacity()
1449 pkg); in knl_get_dimm_capacity()
1453 if (pkg == first_pkg) in knl_get_dimm_capacity()
1815 u32 pkg = sad_pkg(pvt->info.interleave_pkg, reg, j); in get_memory_layout() local
[all …]
/drivers/net/
Dthunderbolt.c402 const struct thunderbolt_ip_login *pkg = buf; in tbnet_handle_packet() local
412 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
414 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
417 route = ((u64)pkg->hdr.route_hi << 32) | pkg->hdr.route_lo; in tbnet_handle_packet()
422 sequence = pkg->hdr.length_sn & TBIP_HDR_SN_MASK; in tbnet_handle_packet()
424 command_id = pkg->hdr.command_id; in tbnet_handle_packet()
426 switch (pkg->hdr.type) { in tbnet_handle_packet()
432 pkg->hdr.command_id); in tbnet_handle_packet()
436 net->remote_transmit_path = pkg->transmit_path; in tbnet_handle_packet()
/drivers/net/ethernet/intel/ice/
Dice_devlink.c153 struct ice_pkg_ver *pkg = &pf->hw.active_pkg_ver; in ice_info_ddp_pkg_version() local
155 snprintf(ctx->buf, sizeof(ctx->buf), "%u.%u.%u.%u", pkg->major, pkg->minor, pkg->update, in ice_info_ddp_pkg_version()
156 pkg->draft); in ice_info_ddp_pkg_version()
Dice_flex_pipe.c1179 static enum ice_status ice_verify_pkg(struct ice_pkg_hdr *pkg, u32 len) in ice_verify_pkg() argument
1184 if (len < struct_size(pkg, seg_offset, 1)) in ice_verify_pkg()
1187 if (pkg->pkg_format_ver.major != ICE_PKG_FMT_VER_MAJ || in ice_verify_pkg()
1188 pkg->pkg_format_ver.minor != ICE_PKG_FMT_VER_MNR || in ice_verify_pkg()
1189 pkg->pkg_format_ver.update != ICE_PKG_FMT_VER_UPD || in ice_verify_pkg()
1190 pkg->pkg_format_ver.draft != ICE_PKG_FMT_VER_DFT) in ice_verify_pkg()
1194 seg_count = le32_to_cpu(pkg->seg_count); in ice_verify_pkg()
1199 if (len < struct_size(pkg, seg_offset, seg_count)) in ice_verify_pkg()
1204 u32 off = le32_to_cpu(pkg->seg_offset[i]); in ice_verify_pkg()
1211 seg = (struct ice_generic_seg_hdr *)((u8 *)pkg + off); in ice_verify_pkg()
[all …]
/drivers/bcma/
Dscan.c448 chipinfo->pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT; in bcma_detect_chip()
453 chip_id, chipinfo->rev, chipinfo->pkg); in bcma_detect_chip()

12