Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 25 of 242) sorted by relevance

12345678910

/drivers/dio/
Ddio-driver.c29 dio_match_device(const struct dio_device_id *ids, in dio_match_device() argument
32 while (ids->id) { in dio_match_device()
33 if (ids->id == DIO_WILDCARD) in dio_match_device()
34 return ids; in dio_match_device()
35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device()
36 if (ids->id == d->id) in dio_match_device()
37 return ids; in dio_match_device()
39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device()
40 return ids; in dio_match_device()
42 ids++; in dio_match_device()
[all …]
/drivers/zorro/
Dzorro-driver.c32 zorro_match_device(const struct zorro_device_id *ids, in zorro_match_device() argument
35 while (ids->id) { in zorro_match_device()
36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device()
37 return ids; in zorro_match_device()
38 ids++; in zorro_match_device()
132 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local
134 if (!ids) in zorro_bus_match()
137 while (ids->id) { in zorro_bus_match()
138 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_bus_match()
140 ids++; in zorro_bus_match()
/drivers/regulator/
Dstpmic1_regulator.c195 #define REG_LDO(ids, base) { \ argument
196 .name = #ids, \
197 .id = STPMIC1_##ids, \
204 .vsel_reg = ids##_ACTIVE_CR, \
206 .enable_reg = ids##_ACTIVE_CR, \
214 #define REG_LDO3(ids, base) { \ argument
215 .name = #ids, \
216 .id = STPMIC1_##ids, \
237 #define REG_LDO4(ids, base) { \ argument
238 .name = #ids, \
[all …]
Dmax8907-regulator.c46 #define REG_LDO(ids, supply, base, min, max, step) \ argument
47 [MAX8907_##ids] = { \
48 .name = #ids, \
50 .id = MAX8907_##ids, \
63 #define REG_FIXED(ids, supply, voltage) \ argument
64 [MAX8907_##ids] = { \
65 .name = #ids, \
67 .id = MAX8907_##ids, \
75 #define REG_OUT5V(ids, supply, base, voltage) \ argument
76 [MAX8907_##ids] = { \
[all …]
/drivers/pci/
Dpci-stub.c22 static char ids[1024] __initdata; variable
24 module_param_string(ids, ids, sizeof(ids), 0);
25 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is "
51 if (ids[0] == '\0') in pci_stub_init()
55 p = ids; in pci_stub_init()
Dsearch.c374 int pci_dev_present(const struct pci_device_id *ids) in pci_dev_present() argument
379 while (ids->vendor || ids->subvendor || ids->class_mask) { in pci_dev_present()
380 found = pci_get_dev_by_id(ids, NULL); in pci_dev_present()
385 ids++; in pci_dev_present()
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Den_tc_tracepoint.c7 void put_ids_to_array(int *ids, in put_ids_to_array() argument
14 ids[i] = entries[i].id; in put_ids_to_array()
43 int *ids, in parse_action() argument
50 if (ids[i] < NUM_FLOW_ACTIONS) in parse_action()
51 trace_seq_printf(p, "%s ", FLOWACT2STR[ids[i]]); in parse_action()
Den_tc_tracepoint.h15 #define __parse_action(ids, num) parse_action(p, ids, num) argument
17 void put_ids_to_array(int *ids,
22 int *ids,
30 __dynamic_array(int, ids, f->rule ?
37 put_ids_to_array(__get_dynamic_array(ids),
43 __parse_action(__get_dynamic_array(ids),
/drivers/sh/superhyway/
Dsuperhyway.c124 superhyway_match_id(const struct superhyway_device_id *ids, in superhyway_match_id() argument
127 while (ids->id) { in superhyway_match_id()
128 if (ids->id == dev->id.id) in superhyway_match_id()
129 return ids; in superhyway_match_id()
131 ids++; in superhyway_match_id()
198 const struct superhyway_device_id *ids = shyway_drv->id_table; in superhyway_bus_match() local
200 if (!ids) in superhyway_bus_match()
202 if (superhyway_match_id(ids, shyway_dev)) in superhyway_bus_match()
/drivers/media/pci/ddbridge/
Dddbridge-main.c197 dev->link[0].ids.vendor = id->vendor; in ddb_probe()
198 dev->link[0].ids.device = id->device; in ddb_probe()
199 dev->link[0].ids.subvendor = id->subvendor; in ddb_probe()
200 dev->link[0].ids.subdevice = pdev->subsystem_device; in ddb_probe()
201 dev->link[0].ids.devid = (id->device << 16) | id->vendor; in ddb_probe()
224 dev->link[0].ids.hwid = ddbreadl(dev, 0); in ddb_probe()
225 dev->link[0].ids.regmapid = ddbreadl(dev, 4); in ddb_probe()
228 dev->link[0].ids.hwid, dev->link[0].ids.regmapid); in ddb_probe()
/drivers/scsi/libfc/
Dfc_disc.c387 struct fc_rport_identifiers ids; in fc_disc_gpn_ft_parse() local
431 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse()
432 ids.port_name = ntohll(np->fp_wwpn); in fc_disc_gpn_ft_parse()
434 if (ids.port_id != lport->port_id && in fc_disc_gpn_ft_parse()
435 ids.port_name != lport->wwpn) { in fc_disc_gpn_ft_parse()
436 rdata = fc_rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse()
438 rdata->ids.port_name = ids.port_name; in fc_disc_gpn_ft_parse()
443 "(%6.6x)\n", ids.port_id); in fc_disc_gpn_ft_parse()
597 if (rdata->ids.port_name == -1) in fc_disc_gpn_id_resp()
598 rdata->ids.port_name = port_name; in fc_disc_gpn_id_resp()
[all …]
Dfc_rport.c111 if (tmp_rdata->ids.port_id == port_id && in fc_rport_lookup()
145 rdata->ids.node_name = -1; in fc_rport_create()
146 rdata->ids.port_name = -1; in fc_rport_create()
147 rdata->ids.port_id = port_id; in fc_rport_create()
148 rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; in fc_rport_create()
265 struct fc_rport_identifiers ids; in fc_rport_work() local
279 ids = rdata->ids; in fc_rport_work()
287 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work()
333 port_id = rdata->ids.port_id; in fc_rport_work()
503 u32 port_id = rdata->ids.port_id; in fc_rport_logoff()
[all …]
/drivers/mmc/core/
Dsdio_bus.c79 const struct sdio_device_id *ids; in sdio_match_device() local
81 ids = sdrv->id_table; in sdio_match_device()
83 if (ids) { in sdio_match_device()
84 while (ids->class || ids->vendor || ids->device) { in sdio_match_device()
85 if (sdio_match_one(func, ids)) in sdio_match_device()
86 return ids; in sdio_match_device()
87 ids++; in sdio_match_device()
/drivers/scsi/csiostor/
Dcsio_attr.c63 struct fc_rport_identifiers ids; in csio_reg_rnode() local
67 ids.node_name = wwn_to_u64(csio_rn_wwnn(rn)); in csio_reg_rnode()
68 ids.port_name = wwn_to_u64(csio_rn_wwpn(rn)); in csio_reg_rnode()
69 ids.port_id = rn->nport_id; in csio_reg_rnode()
70 ids.roles = FC_RPORT_ROLE_UNKNOWN; in csio_reg_rnode()
78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode()
99 ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; in csio_reg_rnode()
101 ids.roles |= FC_RPORT_ROLE_FCP_TARGET; in csio_reg_rnode()
103 if (ids.roles != FC_RPORT_ROLE_UNKNOWN) in csio_reg_rnode()
104 fc_remote_port_rolechg(rport, ids.roles); in csio_reg_rnode()
[all …]
/drivers/acpi/
Dacpi_pnp.c355 .ids = acpi_pnp_device_ids,
367 static const struct acpi_device_id ids[] = { in is_cmos_rtc_device() local
373 return !acpi_match_device_ids(adev, ids); in is_cmos_rtc_device()
/drivers/input/touchscreen/
Dcyttsp_core.c273 static void cyttsp_extract_track_ids(struct cyttsp_xydata *xy_data, int *ids) in cyttsp_extract_track_ids() argument
275 ids[0] = xy_data->touch12_id >> 4; in cyttsp_extract_track_ids()
276 ids[1] = xy_data->touch12_id & 0xF; in cyttsp_extract_track_ids()
277 ids[2] = xy_data->touch34_id >> 4; in cyttsp_extract_track_ids()
278 ids[3] = xy_data->touch34_id & 0xF; in cyttsp_extract_track_ids()
304 int ids[CY_MAX_ID]; in cyttsp_report_tchdata() local
322 cyttsp_extract_track_ids(xy_data, ids); in cyttsp_report_tchdata()
329 input_mt_slot(input, ids[i]); in cyttsp_report_tchdata()
335 __set_bit(ids[i], used); in cyttsp_report_tchdata()
/drivers/nvme/host/
Dcore.c1055 struct nvme_ns_ids *ids) in nvme_identify_ns_descs() argument
1091 memcpy(ids->eui64, data + pos + sizeof(*cur), len); in nvme_identify_ns_descs()
1101 memcpy(ids->nguid, data + pos + sizeof(*cur), len); in nvme_identify_ns_descs()
1111 uuid_copy(&ids->uuid, data + pos + sizeof(*cur)); in nvme_identify_ns_descs()
1718 struct nvme_id_ns *id, struct nvme_ns_ids *ids) in nvme_report_ns_ids() argument
1722 memset(ids, 0, sizeof(*ids)); in nvme_report_ns_ids()
1725 memcpy(ids->eui64, id->eui64, sizeof(id->eui64)); in nvme_report_ns_ids()
1727 memcpy(ids->nguid, id->nguid, sizeof(id->nguid)); in nvme_report_ns_ids()
1732 ret = nvme_identify_ns_descs(ctrl, nsid, ids); in nvme_report_ns_ids()
1742 static bool nvme_ns_ids_valid(struct nvme_ns_ids *ids) in nvme_ns_ids_valid() argument
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dbinding.c71 u16 ids[MAX_MACS_IN_BINDING]; member
107 cmd.macs[i] = cpu_to_le32(FW_CMD_ID_AND_COLOR(data->ids[i], in iwl_mvm_binding_cmd()
142 data->ids[data->idx] = mvmvif->id; in iwl_mvm_iface_iterator()
181 data.ids[data.idx] = mvmvif->id; in iwl_mvm_binding_update()
/drivers/scsi/fcoe/
Dfcoe_ctlr.c2131 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback()
2145 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback()
2348 frport->rdata.ids.node_name = in fcoe_ctlr_vn_parse()
2356 frport->rdata.ids.port_id = ntoh24(vn->fd_fc_id); in fcoe_ctlr_vn_parse()
2357 frport->rdata.ids.port_name = in fcoe_ctlr_vn_parse()
2411 if (frport->rdata.ids.port_id != fip->port_id) in fcoe_ctlr_vn_probe_req()
2431 if (fip->lp->wwpn > frport->rdata.ids.port_name && in fcoe_ctlr_vn_probe_req()
2462 if (frport->rdata.ids.port_id != fip->port_id) in fcoe_ctlr_vn_probe_reply()
2493 struct fc_rport_identifiers *ids; in fcoe_ctlr_vn_add() local
2497 port_id = new->rdata.ids.port_id; in fcoe_ctlr_vn_add()
[all …]
/drivers/pinctrl/sh-pfc/
Dsh_pfc.h141 #define PINMUX_CFG_REG(name, r, r_width, f_width, ids) \ argument
144 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
147 { ids }
161 #define PINMUX_CFG_REG_VAR(name, r, r_width, f_widths, ids) \ argument
164 SET_NR_ENUM_IDS(sizeof((const u16 []) { ids }) / sizeof(u16)) \
165 .enum_ids = (const u16 []) { ids }
211 #define PINMUX_DATA_REG(name, r, r_width, ids) \ argument
213 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
215 .enum_ids = (const u16 [r_width]) { ids }
225 #define PINMUX_IRQ(ids...) \ argument
[all …]
/drivers/input/serio/
Dserio.c73 static int serio_match_port(const struct serio_device_id *ids, struct serio *serio) in serio_match_port() argument
75 while (ids->type || ids->proto) { in serio_match_port()
76 if ((ids->type == SERIO_ANY || ids->type == serio->id.type) && in serio_match_port()
77 (ids->proto == SERIO_ANY || ids->proto == serio->id.proto) && in serio_match_port()
78 (ids->extra == SERIO_ANY || ids->extra == serio->id.extra) && in serio_match_port()
79 (ids->id == SERIO_ANY || ids->id == serio->id.id)) in serio_match_port()
81 ids++; in serio_match_port()
/drivers/mcb/
Dmcb-core.c17 static const struct mcb_device_id *mcb_match_id(const struct mcb_device_id *ids, in mcb_match_id() argument
20 if (ids) { in mcb_match_id()
21 while (ids->device) { in mcb_match_id()
22 if (ids->device == dev->id) in mcb_match_id()
23 return ids; in mcb_match_id()
24 ids++; in mcb_match_id()
/drivers/misc/mic/bus/
Dmic_bus.c67 const struct mbus_device_id *ids; in mbus_dev_match() local
69 ids = drv_to_mbus(dr)->id_table; in mbus_dev_match()
70 for (i = 0; ids[i].device; i++) in mbus_dev_match()
71 if (mbus_id_match(dev, &ids[i])) in mbus_dev_match()
Dvop_bus.c69 const struct vop_device_id *ids; in vop_dev_match() local
71 ids = drv_to_vop(dr)->id_table; in vop_dev_match()
72 for (i = 0; ids[i].device; i++) in vop_dev_match()
73 if (vop_id_match(dev, &ids[i])) in vop_dev_match()
/drivers/ipack/
Dipack.c40 ipack_match_id(const struct ipack_device_id *ids, struct ipack_device *idev) in ipack_match_id() argument
42 if (ids) { in ipack_match_id()
43 while (ids->vendor || ids->device) { in ipack_match_id()
44 if (ipack_match_one_device(ids, idev)) in ipack_match_id()
45 return ids; in ipack_match_id()
46 ids++; in ipack_match_id()

12345678910