Lines Matching defs:new
432 * Pointer to the new clock entry on success, otherwise NULL on failure.
440 struct twl_clk_entry *new;
444 new = malloc(sizeof(struct twl_clk_entry), M_DEVBUF, M_NOWAIT | M_ZERO);
445 if (new == NULL)
448 strncpy(new->name, name, TWL_CLKS_MAX_NAMELEN);
449 new->name[TWL_CLKS_MAX_NAMELEN - 1] = '\0';
451 new->sub_dev = nsub;
452 new->reg_off = regbase;
455 new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name,
460 LIST_INSERT_HEAD(&sc->sc_clks_list, new, link);
462 return (new);