Home
last modified time | relevance | path

Searched refs:dev_name (Results 1 – 16 of 16) sorted by relevance

/tools/net/ynl/generated/
Ddevlink-user.h82 char *dev_name; member
101 devlink_get_req_set_dev_name(struct devlink_get_req *req, const char *dev_name) in devlink_get_req_set_dev_name() argument
103 free(req->dev_name); in devlink_get_req_set_dev_name()
104 req->_present.dev_name_len = strlen(dev_name); in devlink_get_req_set_dev_name()
105 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_get_req_set_dev_name()
106 memcpy(req->dev_name, dev_name, req->_present.dev_name_len); in devlink_get_req_set_dev_name()
107 req->dev_name[req->_present.dev_name_len] = 0; in devlink_get_req_set_dev_name()
120 char *dev_name; member
154 char *dev_name; member
176 const char *dev_name) in devlink_port_get_req_set_dev_name() argument
[all …]
Dethtool-user.h33 char *dev_name; member
239 const char *dev_name) in ethtool_strset_get_req_set_header_dev_name() argument
241 free(req->header.dev_name); in ethtool_strset_get_req_set_header_dev_name()
242 req->header._present.dev_name_len = strlen(dev_name); in ethtool_strset_get_req_set_header_dev_name()
243 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_strset_get_req_set_header_dev_name()
244 memcpy(req->header.dev_name, dev_name, req->header._present.dev_name_len); in ethtool_strset_get_req_set_header_dev_name()
245 req->header.dev_name[req->header._present.dev_name_len] = 0; in ethtool_strset_get_req_set_header_dev_name()
317 const char *dev_name) in ethtool_strset_get_req_dump_set_header_dev_name() argument
319 free(req->header.dev_name); in ethtool_strset_get_req_dump_set_header_dev_name()
320 req->header._present.dev_name_len = strlen(dev_name); in ethtool_strset_get_req_dump_set_header_dev_name()
[all …]
Ddevlink-user.c426 free(req->dev_name); in devlink_get_req_free()
433 free(rsp->dev_name); in devlink_get_rsp_free()
470 dst->dev_name = malloc(len + 1); in devlink_get_rsp_parse()
471 memcpy(dst->dev_name, mnl_attr_get_str(attr), len); in devlink_get_rsp_parse()
472 dst->dev_name[len] = 0; in devlink_get_rsp_parse()
513 mnl_attr_put_strz(nlh, DEVLINK_ATTR_DEV_NAME, req->dev_name); in devlink_get()
541 free(rsp->obj.dev_name); in devlink_get_list_free()
577 free(req->dev_name); in devlink_port_get_req_free()
584 free(rsp->dev_name); in devlink_port_get_rsp_free()
618 dst->dev_name = malloc(len + 1); in devlink_port_get_rsp_parse()
[all …]
Dethtool-user.c672 free(obj->dev_name); in ethtool_header_free()
684 mnl_attr_put_strz(nlh, ETHTOOL_A_HEADER_DEV_NAME, obj->dev_name); in ethtool_header_put()
714 dst->dev_name = malloc(len + 1); in ethtool_header_parse()
715 memcpy(dst->dev_name, mnl_attr_get_str(attr), len); in ethtool_header_parse()
716 dst->dev_name[len] = 0; in ethtool_header_parse()
/tools/perf/scripts/python/
Dnetdev-times.py261 dev_name, work=None, budget=None): argument
263 napi, dev_name, work, budget)
267 skblen, dev_name): argument
269 skbaddr, skblen, dev_name)
273 skblen, dev_name): argument
275 skbaddr, skblen, dev_name)
279 skbaddr, skblen, dev_name): argument
281 skbaddr, skblen, dev_name)
285 skbaddr, skblen, rc, dev_name): argument
287 skbaddr, skblen, rc ,dev_name)
[all …]
/tools/testing/selftests/drivers/sdsi/
Dsdsi_test.py169 dev_name = DEV_PREFIX + '.' + str(socket)
170 driver_dir = CLASS_DIR + '/' + dev_name + "/driver/"
177 print(dev_name, file = k)
208 dev_name = DEV_PREFIX + '.' + str(socket)
209 driver_dir = CLASS_DIR + '/' + dev_name + "/driver/"
212 print(dev_name, file = k)
/tools/arch/x86/intel_sdsi/
Dintel_sdsi.c179 char *dev_name; member
265 printf("Socket information for device %s\n", s->dev_name); in sdsi_read_reg()
382 printf("Meter certificate for device %s\n", s->dev_name); in sdsi_meter_cert_show()
467 printf("State certificate for device %s\n", s->dev_name); in sdsi_state_cert_show()
684 s->dev_name = (char *)malloc(sizeof(SDSI_DEV) + strlen(dev_no) + 1); in sdsi_create_dev()
685 if (!s->dev_name) { in sdsi_create_dev()
691 snprintf(s->dev_name, dev_name_len, "%s.%s", SDSI_DEV, dev_no); in sdsi_create_dev()
696 free(s->dev_name); in sdsi_create_dev()
702 s->dev_name); in sdsi_create_dev()
708 free(s->dev_name); in sdsi_create_dev()
[all …]
/tools/net/ynl/samples/
Ddevlink.c26 printf("%s/%s:\n", d->bus_name, d->dev_name); in main()
30 devlink_info_get_req_set_dev_name(info_req, d->dev_name); in main()
Dethtool.c30 printf(" %8s: ", dev->header.dev_name); in main()
48 printf(" %8s: ", dev->header.dev_name); in main()
/tools/testing/selftests/bpf/prog_tests/
Dlwt_helpers.h42 static int open_tuntap(const char *dev_name, bool need_mac) in open_tuntap() argument
52 memcpy(ifr.ifr_name, dev_name, IFNAMSIZ); in open_tuntap()
/tools/hv/
Dlsvmbus46 def get_vmbus_dev_attr(dev_name, attr):
48 f = open('%s/%s/%s' % (vmbus_sys_path, dev_name, attr), 'r')
/tools/testing/selftests/net/
Drps_default_mask.sh27 local dev_name=$3
34 rps_mask=$($cmd /sys/class/net/$dev_name/queues/rx-0/rps_cpus)
/tools/testing/cxl/
Dmock_acpi.c30 dev_dbg(host, "found host bridge %s\n", dev_name(&adev->dev)); in to_cxl_host_bridge()
/tools/testing/cxl/test/
Dcxl.c675 dev_dbg(&port->dev, "%s commit\n", dev_name(&cxld->dev)); in mock_decoder_commit()
679 dev_name(&cxld->dev), port->id, in mock_decoder_commit()
698 dev_dbg(&port->dev, "%s reset\n", dev_name(&cxld->dev)); in mock_decoder_reset()
702 dev_name(&cxld->dev), port->id, port->commit_end); in mock_decoder_reset()
915 dev_dbg(&cxld->dev, "Added to port %s\n", dev_name(&port->dev)); in mock_cxl_enumerate_decoders()
935 dev_name(port->uport_dev)); in mock_cxl_port_enumerate_dports()
949 dev_name(port->uport_dev)); in mock_cxl_port_enumerate_dports()
964 dev_name(port->uport_dev), in mock_cxl_port_enumerate_dports()
965 dev_name(pdev->dev.parent)); in mock_cxl_port_enumerate_dports()
/tools/testing/selftests/gpio/
Dgpio-sim.sh119 cat $CONFIGFS_DIR/$CHIP/dev_name 2> /dev/null || \
197 test -n `cat $CONFIGFS_DIR/chip/dev_name` || fail "dev_name doesn't work"
/tools/testing/nvdimm/test/
Dnfit.c1721 if (sscanf(dev_name(dev), "test_dimm%d", &dimm) != 1) in dimm_name_to_id()
3133 if (strcmp(dev_name(&pdev->dev), "nfit_test.0") == 0) { in nfit_test_probe()